> Wow! Hold it! Am I the only one who finds this absurd? More than one > shift on the same array in one single expressing, sounds like bad style > to me. Comments? You're not the only one. I'd probably do: my ($max, $sep, $end) = @_;
.... but I'd love to know if Steven had a specific reason for doing it the other way. Andrew ----- Original Message ----- From: "Bart Lateur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 10:42 AM Subject: Function parameter passing (was: Re: limit the list) > On Wed, 20 Nov 2002 04:10:02 -0600, Steven Lembark wrote: > > >sub commify > >{ > > my ( $max, $sep, $end ) = ( shift, shift, shift ); > ... > >} > > Wow! Hold it! Am I the only one who finds this absurd? More than one > shift on the same array in one single expressing, sounds like bad style > to me. Comments? > > -- > Bart. >