in reply to Taking individual values from return of a function

Hi,

what keeps you away from just taking these two values?

You could use a wrapper if you need:

sub your_wrapper { my $ret = your_function(@_); return ($ret->{red}->{sla}, $ret->{green}->{sla}); } my ($val1, $val2) = your_wrapper('bla', 'blub');

Regards
McA

Replies are listed 'Best First'.
Re^2: Taking individual values from return of a function
by Anonymous Monk on Dec 10, 2013 at 08:29 UTC
    Possibly lack of knowledge about reference usage.

      Possibly the stupidest answer of the day.

      Karl

      «The Crux of the Biscuit is the Apostrophe»

        Stupid is as stupid does, Forrest...