Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But, I keep getting an error along the lines of@values=([some,things] , [1,2,3,4,5,6]); (a,b,c,d)=CalcMinAvgMaxSum(\@{${$values}[1]}[$start..$end]); sub CalcMinAvgMaxSum() { $ArrayOfValues_REF=@_; for $val (@{$ArrayOfValues_REF}) { ...do some stuff } }
for $val (@{ArrayOfValues_REF})
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing references to array slices
by broquaint (Abbot) on Mar 17, 2004 at 17:11 UTC | |
|
Re: Passing references to array slices
by halley (Prior) on Mar 17, 2004 at 17:11 UTC | |
|
Re: Passing references to array slices
by kvale (Monsignor) on Mar 17, 2004 at 17:21 UTC | |
|
Re: Passing references to array slices
by davido (Cardinal) on Mar 17, 2004 at 18:00 UTC | |
|
Re: Passing references to array slices
by RMGir (Prior) on Mar 17, 2004 at 17:48 UTC | |
|
Re: Passing references to array slices
by bageler (Hermit) on Mar 17, 2004 at 18:14 UTC | |
|
Re: Passing references to array slices
by calin (Deacon) on Mar 17, 2004 at 19:23 UTC | |
by Anonymous Monk on Mar 18, 2004 at 10:52 UTC |