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?@b[0]=c; @b[1]=undef; @b[3]=undef; @b[4]=a;
Edited 2001/06/13 by Ovid
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I print a partial array?⭐
by MeowChow (Vicar) on Jun 13, 2001 at 22:21 UTC | |
Re: How do I print a partial array?
by Albannach (Monsignor) on Jun 13, 2001 at 21:49 UTC | |
Re: How do I print a partial array?
by Sifmole (Chaplain) on Jun 13, 2001 at 22:15 UTC | |
Re: How do I print a partial array?
by dragonchild (Archbishop) on Jun 13, 2001 at 21:54 UTC | |
Re: How do I print a partial array?
by Bloodelf (Beadle) on Jun 19, 2001 at 01:08 UTC |
Back to
Seekers of Perl Wisdom