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

Re: capture system date to $date

by vek (Prior)
on Jun 20, 2004 at 18:13 UTC ( [id://368313]=note: print w/replies, xml ) Need Help??


in reply to capture system date to $date

system only returns success or failure, not the results of the actual command. As others have pointed out, if you really want to shell out you could have used backticks instead. Having said that, you really don't need to use the shell at all. localtime will give you exactly what you need.

-- vek --

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found