in reply to Re^12: Recomendations For Learning perl?
in thread Recomendations For Learning perl?
Hi adamZ88,
Sorry, there was an error in the version I posted with a missing set of parens in one line. Should be:
( my $name = $ARGV[0] ) && length $ARGV[0] > 2 or die "Usage: `$0 <nam +e>` (min. 3 letters)";
( Without the parens, $name was assigned the value of $ARGV[0] && length $ARGV[0] > 2, which is 'true', or, literally, 1 ... which is why you got those weird matches.)
|
|---|