in reply to Re^3: Using undef scalar as arrayref
in thread Using undef scalar as arrayref
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 }
|
|---|