Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I print a partial array?

by Albannach (Monsignor)
on Jun 13, 2001 at 21:49 UTC ( [id://88140]=note: print w/replies, xml ) Need Help??


in reply to How do I print a partial array?

You can test whether an element has been defined with the sensibly named defined function, so one way might be something like:
for my $element (@a) { print $element if defined($element); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://88140]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2025-07-08 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.