Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-04-19 10:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found