Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

(jeffa) Re: create file with current date for name

by jeffa (Chancellor)
on Aug 07, 2001 at 20:06 UTC ( #102829=note: print w/ replies, xml ) Need Help??


in reply to create file with current date for name

The '1' is appended because you are using printf instead of sprintf:

my $ymd = sprintf("%04d%02d%02d",$year+1900,$mon+1,$mday);
This will fix your '1.summary' problem as well. This is a very easy mistake to make - i remember it making myself a few years ago programming in C++. :D

jeffa


Comment on (jeffa) Re: create file with current date for name
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-11-01 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (228 votes), past polls