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

Re: create file with current date for name

by tachyon (Chancellor)
on Aug 07, 2001 at 20:09 UTC ( #102831=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print "\n\n";
    # result is 20010807.summary
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $ymd = sprintf("%04d%02d%02d",$year+1900,$mon+1,$mday);
    my $outfile = "$ymd.summary";
    print $outfile, "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2014-07-24 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (161 votes), past polls