Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Creating 'new' subroutine.

by boftx (Deacon)
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 chanting in the Monastery: (6)
As of 2014-12-22 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls