in reply to undefined elements in array
This is simple:
print $array[$i][$j] if defined $array[$i][$j];
Or alternatively:
if (defined $array[$i][$j]) { print $array[$i][$j]; } else { print ''; }
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: undefined elements in array
by Anonymous Monk on Aug 20, 2013 at 13:35 UTC | |
by Athanasius (Archbishop) on Aug 20, 2013 at 14:17 UTC |
In Section
Seekers of Perl Wisdom