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 reply to Re: How do I print a partial array?
by Bloodelf
in thread How do I print a partial array?
by shampoo7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |