Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 lurking in the Monastery: (4)
As of 2015-07-05 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls