Suvajit Sengupta wrote: > Hi, Hello,
> How can I test whether a hash is empty or not ? > For e.g: I have reference to a hash , say $preCommand and I get > $preCommands as {} , > Its an empty hash, but it exists and is also defined. > I need to check whether the hash is empty or not. > Does anyone has any clue ? unless ( %$preCommands ) { print "The hash %\$preCommands is empty.\n"; } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>