jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
Hi perl lovers
how to simplify the following code
I want the above for to be in single line and consider the performance also.+ %hash = ( 1 => 'one' , 2 => 'two' , 3 => 'three' ); + + foreach ( keys %hash ) { push @one , $hash{$_}; push @two, $_; }
"Keep pouring your ideas"
Back to
Seekers of Perl Wisdom