in reply to creates anonymous hashes with hash slices

$x= {}; # This line probably optional. @{$x}{2..4}= @parm{2..4};

Replies are listed 'Best First'.
RE: Re: creates anonymous hashes with hash slices
by chip (Curate) on Aug 04, 2000 at 00:06 UTC
    Ten out of ten for good answer, but minus one for repeatingt the same data twice literally. :-)
    my @i = (2..4); @$x{@i} = @parm{@i};
        -- Chip Salzenberg, Free-Floating Agent of Chaos