Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: sub returning undef

by Happy-the-monk (Canon)
on May 24, 2004 at 14:38 UTC ( [id://355927]=note: print w/replies, xml ) Need Help??


in reply to sub returning undef

my @array = @_;

There's your array, even if  $array[0]   yields  undef, @array   still is a defined array with one single element.

Test for  $_[0]   being  undef, before you create another array.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found