in reply to Re: Is it possible to assign an array reference to a value in hash
in thread Is it possible to assign an array reference to a value in hash

I am talking about the "value" to a hash key not key as an array reference.

I am able to deference the value when I use it as an array reference. Thanks for the suggestions.

  • Comment on Re^2: Is it possible to assign an array reference to a value in hash

Replies are listed 'Best First'.
Re^3: Is it possible to assign an array reference to a value in hash
by NetWallah (Canon) on May 15, 2012 at 03:30 UTC
    It is unclear whether you consider your (updated) question answered.

    To complete stevieb's example, you can retrieve a value thusly:

    my $retrieve = $hash{ key } -> [1] ; # returns "b" (The "->" is opti +onal)

                 I hope life isn't a big joke, because I don't get it.
                       -SNL