in reply to How to have a subroutine return an undefined hash
my %hash = getHash(); if (! defined(%hash)) { print "undef\n"; } else { print "not undef\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to have a subroutine return an undefined hash
by Fletch (Bishop) on Apr 26, 2005 at 12:53 UTC | |
by samizdat (Vicar) on Apr 26, 2005 at 12:59 UTC |