Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: What one-liners do people actually use?

by Anonymous Monk
on Dec 10, 2005 at 21:51 UTC ( #515753=note: print w/ replies, xml ) Need Help??


in reply to Re: What one-liners do people actually use?
in thread What one-liners do people actually use?

Why not just use localtime?

perl -le'print localtime =~ /Fri/ ? "w" : "b", "oohoo"'
Or:
perl -le'print 5 == (localtime)[6] ? "w" : "b", "oohoo"'


Comment on Re^2: What one-liners do people actually use?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-10-25 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls