1 # for extracting data from the YAPC::NA 2006 schedule
2 # wget -O monday http://yapcchicago.org/the-schedule/monday
3 # pugs yapc_schedule.pl monday
5 grammar yapc_schedule
{
6 rule schedule
{ <title
> [ <talk
> ]+ }
8 token title
{ '<title>' .+?
'</title>' }
12 token talk
{ '<small>' <speaker
> '</small>' }
14 token speaker
{ [\w
|\s
|\
,]+ }
20 my $content = slurp @
*ARGS
[0];
22 my $match = $content ~~ m/<yapc_schedule::schedule>/;