in reply to Hash slice from a hashref

Erm, @{$r->{@l}} is treating the value in $r->{@l} as an arrayref (which isn't going to do anything useful). You mean @{ $r }{ @l }.

Replies are listed 'Best First'.
Re^2: Hash slice from a hashref
by Random_Walk (Prior) on Sep 07, 2006 at 13:57 UTC

    Thanks, I realised it was not going to do anything useful but the required syntax had elluded me completely. Now it is working a treat and I can get some really ugly coding tidied up.

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!