Joachim suggested: > >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? > > In one of my programs, this would be > > sub commify { > my $max = shift; > my $sep = shift; > my $end = shift; > > ... > } > > better or even worse in your view?
Clearer, but just as bad IMHO. I've always done it as sub subroutine( my ($list, &of, $variables) = @_; # rest of code here } It's how it's always shown in the Cookbook & what have you. Matt ******************************************************************************************** " This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message ". ********************************************************************************************