laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Conditional initialisationby Akhasha (Scribe) |
on May 25, 2004 at 01:44 UTC ( [id://356099]=note: print w/replies, xml ) | Need Help?? |
Ah, well the last time I used this construct it was for a function that could accept either a unix timestamp as a scalar, or a time vector as returned by localtime() or gmtime(). So I was checking the length of @_ to see if it was greater than 1 (not 0), like this:
In Section
Seekers of Perl Wisdom
|
|