in reply to Cruel references

It's because you have \[] instead of just []. [] is a reference to an anonymous array, and \[] is a reference TO a reference to an anonymous array.
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Cruel references
by uksza (Canon) on Mar 06, 2005 at 00:51 UTC
    of course!!
    Thanks a lot!
    This is right way:
    $pets{$color}=[]; push @{$pets{$color}},"cat";