http://qs1969.pair.com?node_id=516759

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi perl lovers

how to simplify the following code

+ %hash = ( 1 => 'one' , 2 => 'two' , 3 => 'three' ); + + foreach ( keys %hash ) { push @one , $hash{$_}; push @two, $_; }
I want the above for to be in single line and consider the performance also.

"Keep pouring your ideas"