in reply to Subroutines and Passing data ...
Let us know if that doesn't clear things up.my ($scalar, $a_ref, $h_ref) = some_sub(42, \@foo, \%bar); sub some_sub { my $answer = shift; my ($foo, $bar) = @_; return ($answer, $foo, $bar); }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutines and Passing data ...
by dtharby (Acolyte) on Jun 13, 2005 at 14:08 UTC | |
by Forsaken (Friar) on Jun 13, 2005 at 15:31 UTC |