Don't ask to ask, just ask | |
PerlMonks |
How do I print a partial array?by shampoo7 (Initiate) |
on Jun 13, 2001 at 21:38 UTC ( [id://88137]=perlquestion: print w/replies, xml ) | Need Help?? |
shampoo7 has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (arrays)
I am trying to print an array. But not all the elements are intialize.
i.e.
so when i use print "@b", I want only @b[0] and @b[4] to be printed. How do I skip the undef elements? Edited 2001/06/13 by Ovid Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|