Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Extraneous behaviour of match variables

by explorer (Chaplain)
on Nov 03, 2006 at 02:37 UTC ( #581996=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $url (
        '<a href="/story/43480/">The Bottled Water Lie</a>',
    ...
      print "L2: $2\n";
    
    }
    
  2. or download this
     <a href="/story/43480/">The Bottled Water Lie</a>
    O1: /story/43480/
    ...
    F2:
    L1: /story/video/43480/
    L2: The Bottled Water Lie
    
  3. or download this
    $url =~ m{href="(.+)">(.+)</a>} and $1 !~ /video/;
    print "$1 $2 \n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://581996]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-03-30 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (649 votes), past polls