Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Date in filename

by lhoward (Vicar)
on Jul 24, 2001 at 23:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found