in reply to serial comma function
Update: added $seclast .= ',' if @_;sub serial { my $last = pop; my $seclast = pop; $seclast .= ',' if @_; join('', map "$_, ", @_) . join(' and ', $seclast || (), $last); }
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: serial comma function
by Your Mother (Archbishop) on Apr 16, 2003 at 01:45 UTC | |
by Aristotle (Chancellor) on Apr 16, 2003 at 11:47 UTC |