Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by jeffa (Bishop)
on Aug 07, 2001 at 20:06 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2025-06-18 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.