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.