Of course i could set it in the loop, but then its being set multiple times.if ( $arrayref && @$arrayref ) { # set the flag } ... foreach my $element (@$arrayref) { # do stuff }
In reply to Re^4: Using undef scalar as arrayref
by shemp
in thread Using undef scalar as arrayref
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |