in reply to Passing different values into subroutines
As others have suggested, use references. To call a subroutine, I use:
And in the subroutine itself, I use:thisIsMySub( \@onearray, \%ahasd, \@secondarray, $scalar1, $scalar2);
I would gladly accept advice from others if there is a better way to do this.my @firstarray = @{shift }; my %somehash = %{shift }; my @secondadrray = @{shift }; my $scalarone = shift; my $scalartwo = shift;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Passing different values into subroutines
by chromatic (Archbishop) on Sep 01, 2000 at 08:37 UTC |