-- Andrew Molyneux <[EMAIL PROTECTED]>

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.
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. Notice the usage:

	my $string = commify 90, ', ', 'etc...', @names;

The other problem is that even if there were only three
arguments being passed in you have to check the count
before making the assignment and croak on @_ != 3 in
order to avoid an extra parameter causing $end to
become an integer count.


--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                           +1 800 762 1582

Reply via email to