Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 exploiting the Monastery: (5)
As of 2014-08-30 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls