Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Concatenate to keys in a hash whilst doing substitution on values

by leocharre (Priest)
on Feb 11, 2010 at 21:08 UTC ( [id://822757]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $value_0;
    my $value_1 = 'i have a defined value';
    ...
    $value_0=~/content/; # this will complain
    $value_1=~/content/; # won't complain
    $value_2=~/content/; # won't complain
    
  2. or download this
    if ( defined $value_0 and $value_0=~/content/ ){
       ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-28 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found