Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Creating 'new' subroutine.

by boftx (Chaplain)
on Oct 12, 2013 at 00:52 UTC ( #1057967=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Creating 'new' subroutine.
in thread Creating 'new' subroutine.

My own quick check confirms what LanX (Rolf) just posted. But with respect for checking for an even number of elements, I wouldn't bother.

One would probably want the fatal error if an odd number was present sense one would most likely be expecting named args coming in. Letting it die is probably the correct course of action.

The answer to the question "Can we do this?" is always an emphatic "Yes!" Just give me enough time and money.


Comment on Re^3: Creating 'new' subroutine.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-09-16 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (158 votes), past polls