should becroak('oh crap!') if ref($_[0]) != 'HASH'
in the example code of the OP.croak('oh crap!') if ref($_[0]) ne 'HASH';
In reply to Re: Preferred technique for named subroutine parameters?
by AnomalousMonk
in thread Preferred technique for named subroutine parameters?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |