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

## 重寫範例 1

### Old

    use WWW::Mechanize;
    use Data::Dumper;
    my $mech = WWW::Mechanize->new();
    $mech->get( "http://google.com" );
    print Dumper $mech->links;

### New

    use FEAR::API -base;
    print Dumper fetch("google.com")->links;

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