Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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.

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 rifling through the Monastery: (12)
As of 2016-06-29 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (387 votes). Check out past polls.