Very nice. Here's my 40 chars... It runs under strict, anyway...
And, combining ours can get us down to 35...sub num2ord { local $_ = shift; # 1 2 3 4 5 6 +7 # 12345678901234678901234567890123456789012345678901234567890123456789 +0 $_.qw(th st nd rd)[/(?<!1)([123])$/*$1] }
-sauoq "My two cents aren't worth a dime.";
In reply to Re^2: Golf - Ordinal Suffixes
by sauoq
in thread Golf - Ordinal Suffixes
by sauoq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |