Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "Not empty: scalar\n" if scalar %hash;
    print "Not empty: 0 != scalar\n" if 0 != scalar %hash;
    print "Not empty: keys\n" if keys %hash;
    
  2. or download this
    v5.32.1
    Empty: !%hash
    ...
    Not empty: scalar
    Not empty: 0 != scalar
    Not empty: keys