Just change the expression
to( keys %{ $HoHoA{ $_ } } )
That way the resulting list will always have at least one element (of length 0).( keys %{ $HoHoA{ $_ } }, '' )
the lowliest monk
In reply to Re^3: Sorting HoHoA based on Length of Second Key
by tlm
in thread Sorting HoHoA based on Length of Second Key
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |