Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 chanting in the Monastery: (7)
As of 2014-12-27 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls