Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: Make things a *little* easier

by Aristotle (Chancellor)
on Sep 12, 2002 at 16:06 UTC ( #197260=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Make things a *little* easier
in thread a farewell to chop

Now that would be something I'd like to see in Perl 6 (and which I have missed in the Perl 5 version of the function on a number of occasions).

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^4: Make things a *little* easier
by John M. Dlugosz (Monsignor) on Sep 12, 2002 at 20:03 UTC
    You seem to be getting different results than mdillon. That's the problem with relying on undocumented details. If you write a sub starting with my ($a,$b,$c,$d)=@_; and then calculate defaults if undef or use the undef value for some special meaning, then leaving off args naturally gives the same results. But if you write if (scalar(@_) < 4) ... to do something different, then using undef doesn't give the same effect.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2019-07-22 20:52 GMT
Find Nodes?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?

    Results (21 votes). Check out past polls.