Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $browser = LWP::UserAgent->new; my $response = $browser->get( $in{url} ); if ( $response->status_line eq '200 OK' ) { my $html = $response->content; print "fetching $in{url}"; while( $html=~ m/<a href="\s*(.+)\s*"/g ) { print print "links $1<br>\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex question
by Corion (Patriarch) on Jul 10, 2007 at 07:51 UTC | |
|
Re: regex question
by Ovid (Cardinal) on Jul 10, 2007 at 10:31 UTC | |
|
Re: regex question
by Anonymous Monk on Jul 10, 2007 at 08:24 UTC | |
by Anonymous Monk on Jul 10, 2007 at 11:11 UTC |