Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Keep It Simple, Stupid
 
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 taking refuge in the Monastery: (22)
As of 2014-04-18 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls