Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Extraneous behaviour of match variables

by ikegami (Patriarch)
on Nov 03, 2006 at 03:49 UTC ( [id://582001]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (qw( video book )) {
       'unchanged' =~ /(.*)/;  # Set $1
    ...
          print "false -> $1\n";
       }
    }
    
  2. or download this
    false -> video
    true -> unchanged
    
  3. or download this
    foreach my $link (
        '<a href="/story/43480/">The Bottled Water Lie</a>',
    ...
    
       print("$url: $title\n");
    }
    
  4. or download this
    foreach my $link (
        '<a href="/story/43480/">The Bottled Water Lie</a>',
    ...
    
       print("$url: $title\n");
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found