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