in reply to creates anonymous hashes with hash slices

There's not really anything like an "anonymous hash created from a slice". You'll have to settle for something like:
$x = { map { $_ => $parm{$_} } 2..4 };

-- Randal L. Schwartz, Perl hacker