Just as an academic exercise, I thought I should be able to do this:

**************************************
@a=(l=>35,k=>31,r=>7,k=>6);
@r=qw/l r r k/;
# make an anonymous hash using @a, then grab values from it using @r as keys
@a...@a}{@r};
print join(",",@a), "\n"'
**************************************

... but it doesn't like the {}{} notation.  Is this not possible?  I do this
with lists all the time, e.g. @a = (split)[1,7,15];

TIA.

- Bryan



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to