[Israel.pm] Correct way of taking a slice of a hash reference
Adam BE
adamb_e at yahoo.com
Sun Jan 20 23:50:48 PST 2008
Hi,
What is the correct way / best practice of taking a slice of a hash reference:
@{$hash_ref}{ @keys };
Or: @$hash_ref{ @keys };
Using @$hash_ref{ @keys } I get a "@$hash_ref Not an ARRAY reference" warning in Komodo
however I get no warning when running the same code with use strict and use warnings
in the Perl debugger.
Am I missing something?
Thanks,
Adam.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the Perl
mailing list