in reply to Re: serial comma function
in thread serial comma function
update:forgot about that whole, if there are more than two in the list with the commas bit, so neglect the above as it does not do what the original code posted does (as Aristotle's does.)sub serial { my $last = pop; @_ ? join(', ', @_) . " and $last" : $last; }
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: serial comma function (not that easy..)
by Aristotle (Chancellor) on Apr 16, 2003 at 00:04 UTC |