sub list_commify { if (@_ > 2) { join ", ", @_[0..$#_-1], " and $_[-1]" } elsif (@_ > 1) { "$_[0] and $_[1]" } elsif (@_ > 0) { $_[0] } else { "" } }
In reply to Re: Sentances from arrays
by myocom
in thread Sentances from arrays
by IndyZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |