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

Re^5: Comparison between a string and an array

by sir_jeff (Initiate)
on Sep 27, 2016 at 03:04 UTC ( [id://1172689]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Comparison between a string and an array
in thread Comparison between a string and an array

Declaring (not assigning) $match & $res as local vars. Just a habit (I always write it this way). The long way would be :
my $match; my $res;
or to declare and assign :
my $match=""; my $res="";
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)

Replies are listed 'Best First'.
Re^6: Comparison between a string and an array
by haukex (Archbishop) on Sep 27, 2016 at 10:03 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-29 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found