in reply to Re: Looking for exact match in an array
in thread Looking for exact match in an array
Nice reply, but there are a few things I would do differently. Consider this another "[p]ick whichever you like most" post.
# your number 1 uses "if (not ...)" # which is equivalent to "unless (...)" # 4 unless (exists $sheets{$machine_sheetname}) { $sheets{$machine_sheetname} = 1; } # but I'm not really sure why you're checking for existence at all. # just incrementing the value is the simplest approach. # 5 $sheets{$machine_sheetname}++;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Looking for exact match in an array
by gaal (Parson) on Dec 10, 2004 at 20:35 UTC |