in reply to How do I print a partial array?
Another way....
Edited by davido: Added "defined" to conditional so that elements containing '0' would still print, while undefined elements are skipped.foreach ( @b ) { print "$_\n" if defined $_; }
|
---|
In Section
Seekers of Perl Wisdom