Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Correct idiom for default parameters

by mrider (Beadle)
on Apr 28, 2010 at 18:33 UTC ( #837368=note: print w/replies, xml ) Need Help??

in reply to Re: Correct idiom for default parameters
in thread Correct idiom for default parameters

Good points. Understand though, that this bears almost no resemblance to my "real" code. I was attempting to put together the absolute minimum necessary to demonstrate the question and my intentions. And no, my real package isn't called "Test" :)

For the most part, the sub routines in question take one parameter and it's optional. I think there's one (maybe two) subroutines that take two where the first is mandatory, and the second is optional. I'd have to look again, as I forget off the top of my head. I do appreciate the input though.

  • Comment on Re^2: Correct idiom for default parameters

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837368]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2017-12-16 07:40 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (449 votes). Check out past polls.