getting $date




Hi,
A bit ashamed to post this question, but the bruise on my forehead is
threatening to obscure my vision ..

I need to get the date in what bash would do as 'date+%d%m%y', and I did
it once about a year ago, but the machine on which the code is present,
is offline.

I tried this ..

my $date = (system "date"+%d%m%y) ;
print $date ;

... and it gives me '-1' ...

Google doesn't help, either. Thanks in advance.
--
spam
.



Relevant Pages