Help for this page

Select Code to Download


  1. or download this
    if(scalar @{[ delete @hash{keys %hash} ]}) {
      print "Hash was not empty\n";
    ...
    else {
      print "Hash was empty\n";
    }
    
  2. or download this
    if(grep defined($_), values %hash) {
      ...
    }