in reply to Getting an array slice of value assignments in a hash

print join ', ', map $vals{$_}, sort { $a <=> $b } keys %vals;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: What? Braces aren't the same as brackets? {grin}

Replies are listed 'Best First'.
Re^2: Getting an array slice of value assignments in a hash
by ZlR (Chaplain) on Jun 03, 2005 at 10:38 UTC
    shouldn't it be :
    map $vals{$_},
    instead ?