in reply to Re: Returning two arrays..
in thread Returning two arrays..
isn't much different from returning two references:sub f { @foo = ( 1, 2 ); @bar = ( 3, 4 ); @all = ( \@foo, \@bar ); return @all; } foreach ( f() ) { print @{$_}; }
sub f { @foo = ( 1, 2 ); @bar = ( 3, 4 ); return \@foo, \@bar; } foreach ( f() ) { print @{$_}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Returning two arrays..
by jonjacobmoon (Pilgrim) on Jan 04, 2002 at 13:58 UTC | |
by chromatic (Archbishop) on Jan 14, 2002 at 00:44 UTC | |
|
Re: Re: Re: Returning two arrays..
by jarich (Curate) on Jan 04, 2002 at 12:05 UTC | |
by mr_mischief (Monsignor) on Jan 04, 2002 at 21:26 UTC |