good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: capture system date to $dateby vek (Prior) |
on Jun 20, 2004 at 18:13 UTC ( [id://368313]=note: print w/replies, xml ) | Need Help?? |
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
--
In Section
Seekers of Perl Wisdom
|
|