[Israel.pm] Direct access to variables from sub

Mikhael Goikhman migo at homemail.com
Sun Oct 2 05:35:01 PDT 2005

On 02 Oct 2005 14:07:33 +0200, david istermann wrote:
> I have a subroutine which returns a hash (a real hash, not a
> reference). I'd like to directly access an entry inside this hash
> bypassing variable assignment, however I cannot seem to successfully
> tell Perl my intention... Please help!

Something like this:

  my $monthly_cost = { sub_returning_list_that_is_hash() }->{September};


perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'

More information about the Perl mailing list