> -----Original Message-----
> From: Steven Lembark [mailto:[EMAIL PROTECTED]] 
> -- 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?

What crack pipe yo' smokin' home's? $c ain't no integer coult, 'at $c be a
nasty "bletch".

d:\>perl -e "my ( $a, $b, $c ) = qw( foo bar bletch blort bim bam blort
);print$c"
bletch
d:\>perl -v

This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)







-----------------------------------------------------------------------


Registered Office:
Marks & Spencer p.l.c
Michael House, Baker Street,
London, W1U 8EP
Registered No. 214436 in England and Wales.

Telephone (020) 7935 4422 
Facsimile (020) 7487 2670

www.marksandspencer.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know and 
then delete it from your system; you should not copy, disclose, or distribute its 
contents to anyone nor act in reliance on this e-mail, as this is prohibited and may 
be unlawful.

The registered office of Marks and Spencer Financial Services PLC, Marks and Spencer 
Unit Trust Management Limited, Marks and Spencer Life Assurance Limited and Marks and 
Spencer Savings and Investments Limited is Kings Meadow, Chester, CH99 9FB.

Reply via email to