-- Philip Newton <[EMAIL PROTECTED]>
On Wed, 20 Nov 2002 10:35:11 -0600, [EMAIL PROTECTED] (Steven Lembark)
wrote:
-- Andrew Molyneux <[EMAIL PROTECTED]>
> I'd probably do:
> my ($max, $sep, $end) = @_;
Yes, becuase if you did it this way you'd get $end equal
to the integer coult of the number of list arguments passed
plus one for the end value.
Huh? $end gets assigned $_[2]. I'm not sure where you get an "integer
coult" from.
Look up what happens to arrays in a scalar context.
Or try in the debugger:
my ( $a, $b, $c ) = qw( foo bar bletch blort bim bam blort );
what do yo get for $c?
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582