Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: How to test for empty hash?

by eyepopslikeamosquito (Archbishop)
on Aug 07, 2021 at 05:21 UTC ( [id://11135668]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       cmp_ok( scalar(%hash), '!=', 0, "Not empty: scalar != 0" );
       ok( (keys(%hash) ? 1 : 0),      "Not empty: keys"        );
    }
    
  2. or download this
    not ok 1 - Version = v5.32.1
    #   Failed test 'Version = v5.32.1'
    #   at badtests1.pl line 8.
    
  3. or download this
    #   Failed test 'Version = v5.32.1'
    #   at badtests2.pl line 9.
    #          got: 'v5.32.0'
    #     expected: 'v5.32.1'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found