FEAR::API #22 | FEAR::API - There's no fear with this elegant site scraper | Next >>

## Deal with links in a web page (I)

    url("google.com")->()
      >> [
          qr(^http:) => _self,
          qr(google) => \my @l,
          qr(google) => sub {  print ">>>".$_[0]->[0],$/ }
         ];
    $_->() while $_;
    print Dumper \@l;

<< Previous | Index | Next >> | Copyright © 2006 Yung-chung Lin