Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: English Date-Suffixes

by petral (Curate)
on Nov 05, 2002 at 00:45 UTC ( #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
Node Status?
node history
Node Type: note [id://210355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-01-21 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?