in reply to Re^2: Filling a hash
in thread Filling a hash
I suppose. But it doesn't seem much natural :) I only wondered why the teacher had to specify this strange requirement.{ my @ary = %hash; push @ary, $k => $v; %hash = @ary; }
Update: corrected bug in snippet, thanks to QM
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|