Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 pondering the Monastery: (11)
As of 2016-02-12 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (410 votes), past polls