Do you know where your variables are? | |
PerlMonks |
Re^5: Comparison between a string and an arrayby sir_jeff (Initiate) |
on Sep 27, 2016 at 03:04 UTC ( [id://1172689]=note: print w/replies, xml ) | Need Help?? |
Declaring (not assigning) $match & $res as local vars.
Just a habit (I always write it this way).
The long way would be :
or to declare and assign : But as I said earlier - I won't use "my" if it's just rough code (as it's not a Strict script - just example code)
In Section
Seekers of Perl Wisdom
|
|