Hmm, that's not very compact. But at least, it works. :)sub suffer { local $_ = shift; return $_ . (/(?<!1)([123])$/ ? (qw(- st nd rd))[$1] : 'th'); }
In reply to Re^2: POSIX strftime format question
by bart
in thread POSIX strftime format question
by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |