Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Date in filename

by lhoward (Vicar)
on Jul 24, 2001 at 23:59 UTC ( #99463=note: print w/replies, xml ) Need Help??


in reply to Date in filename

One method of many.....
use POSIX; my $filename=POSIX::strftime("%Y%m%d",localtime(time()))."_foo.dat"; open F,">$filename" or die "error opening $filename : $!"; ...

Replies are listed 'Best First'.
Re: Re: Date in filename
by Anonymous Monk on Jul 25, 2001 at 17:06 UTC
    Thanks lhoward. Most appreciated!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99463]
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 2019-08-23 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?