pitbull3000 has asked for the wisdom of the Perl Monks concerning the following question:
i want to pass some scalars and an array to a sub, but how can get the values then
but unfortunately this isnt working...&example($scalar1, $scalar2, @info1); sub example { $scalar1 = shift;$scalar2 = shift;@info1 = @_; ..... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: passing array to a sub
by Masem (Monsignor) on Aug 25, 2001 at 15:32 UTC | |
Re: passing array to a sub
by George_Sherston (Vicar) on Aug 25, 2001 at 15:42 UTC | |
by pitbull3000 (Beadle) on Aug 25, 2001 at 15:46 UTC | |
Re: passing array to a sub
by Zaxo (Archbishop) on Aug 25, 2001 at 15:55 UTC |
Back to
Seekers of Perl Wisdom