in reply to How to test for empty hash?
perl -e 'my %x=(); print scalar %x' 0
but then, this caused me pause:
perl -e 'my %x=undef; print scalar %x' 1/8
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to test for empty hash? (Perl Secret Operators)
by eyepopslikeamosquito (Archbishop) on Aug 08, 2021 at 06:01 UTC | |
by haukex (Archbishop) on Aug 08, 2021 at 08:07 UTC | |
by eyepopslikeamosquito (Archbishop) on Aug 08, 2021 at 11:03 UTC | |
by haukex (Archbishop) on Aug 08, 2021 at 18:30 UTC | |
|
Re^2: How to test for empty hash? (updated)
by AnomalousMonk (Archbishop) on Aug 08, 2021 at 03:24 UTC |