Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: English Date-Suffixes

by petral (Curate)
on Nov 05, 2002 at 00:45 UTC ( [id://210355]=note: print w/replies, xml ) Need Help??


in reply to Re: English Date-Suffixes
in thread English Date-Suffixes

Is this what you want? (Neither pop nor shift load $_ by defalult -- they just default to using @_ in a sub or @ARGV in the main prog.)
$_=pop;qw(0 st nd rd)[!/1./&&$_%10]or'th'


  p

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://210355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-19 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found