nop has asked for the wisdom of the Perl Monks concerning the following question:
doesn't require parens around the if condition, butdie "element isn't an array ref" if ref($_) ne "ARRAY";
does? Just curious about the syntax....if (ref($_) ne "ARRAY") { die "element isn't an array ref"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parens question
by dws (Chancellor) on Jan 28, 2001 at 01:08 UTC | |
by tye (Sage) on Jan 28, 2001 at 04:58 UTC | |
|
Re: parens question
by clemburg (Curate) on Jan 28, 2001 at 00:52 UTC |