Ben Miller wrote:
Hi,
Hello,
I'm reading/scraping hyperlinks from a specific web page using the following while incorporating the WWW::Mechanize module:
my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i );
try tag => 'a' you are trying to assign a value of a to tag the way it is now :)
When I run the program, I get an error: 'Can't modify constant item in scalar assignment at get.pl line 27, near ""a","'.
I'm not modifying anything or at least not trying to . Is the problem that I haven't defined 'tag'?
Thanks from a PERL newbie, Ben
np :)
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>