Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Preferred technique for named subroutine parameters?

by AnomalousMonk (Archbishop)
on May 24, 2009 at 02:35 UTC ( [id://765878]=note: print w/replies, xml ) Need Help??


in reply to Preferred technique for named subroutine parameters?

BTW,
croak('oh crap!') if ref($_[0]) != 'HASH'
should be
croak('oh crap!') if ref($_[0]) ne 'HASH';
in the example code of the OP.

Replies are listed 'Best First'.
Re^2: Preferred technique for named subroutine parameters?
by salazar (Scribe) on May 24, 2009 at 08:20 UTC
    Sooomebody isn't using strict and warnings... :P.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found