Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Extraneous behaviour of match variables

by explorer (Chaplain)
on Nov 03, 2006 at 02:37 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2024-04-18 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found