Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Make things a *little* easier

by Aristotle (Chancellor)
on Sep 12, 2002 at 16:06 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found