in reply to whats wrong reverse %x = reverse %h?
% perl -e '%h = (q => 1, w => 2, x => 0, y => 2);\ print join ",", reverse %h = reverse %h;' w,2,x,0,,2,q,21 % perl -e '%h = (q => 1, w => 2, x => 0, y => 2);\ %h = reverse %h; print join ",", reverse %h;' w,2,x,0,q,21
|
|---|