in reply to Preferred technique for named subroutine parameters?
should becroak('oh crap!') if ref($_[0]) != 'HASH'
in the example code of the OP.croak('oh crap!') if ref($_[0]) ne 'HASH';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Preferred technique for named subroutine parameters?
by salazar (Scribe) on May 24, 2009 at 08:20 UTC |