Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by jeffa (Bishop)
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

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: (6)
As of 2016-06-26 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.