in reply to Re^2: Golf - Ordinal Suffixes
in thread Golf - Ordinal Suffixes
sub num2ord { local $_ = shift; # 1 2 3 4 # 123456789012346789012345678901234567890 $_.(qw(0 st nd rd)[/1?\d$/g]||th) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Golf - Ordinal Suffixes
by sauoq (Abbot) on Oct 27, 2005 at 05:02 UTC | |
by hv (Prior) on Oct 27, 2005 at 09:18 UTC | |
by truedfx (Monk) on Nov 03, 2005 at 12:43 UTC |