in reply to Re^2: Filling a hash
in thread Filling a hash

Something like:
{ my @ary = %hash; push @ary, $k => $v; %hash = @ary; }
I suppose. But it doesn't seem much natural :) I only wondered why the teacher had to specify this strange requirement.

Update: corrected bug in snippet, thanks to QM

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.