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
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to