Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Correct idiom for default parameters

by mrider (Sexton)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-11-27 16:22 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls