in reply to Re^3: Effecicncy of key-only hash
in thread Effecicncy of key-only hash

It may have been me. I used to think it was nice, until I noticed that undef doesn't work on a list (and is so documented).

Replies are listed 'Best First'.
Re^5: Effecicncy of key-only hash
by massa (Hermit) on Aug 25, 2008 at 11:39 UTC
    AFAIK, a hash slice is considered an array and not a list... that's why it begins with '@' :-)
    []s, HTH, Massa (κς,πμ,πλ)
      perldata:
      If you’re confused about why you use an ’@’ there on a hash slice instead of a ’%’, think of it like this. The type of bracket (square or curly) governs whether it’s an array or a hash being looked at. On the other hand, the leading symbol (’$’ or ’@’) on the array or hash indicates whether you are getting back a singular value (a scalar) or a plural one (a list).