Advertisement

09.12.2007 at 12:42PM PDT, ID: 22824428
[x]
Attachment Details

How do I append a date time stamp to this file name

Asked by JoeFletcher in Perl Programming Language, Miscellaneous Programming

Tags: date, file, perl, append, stamp

I have a perl script that creates a text file.  I need to append the current date to the file name.  Right now, I have a variable like this:

# csv path/filename
my $csvfile = "/home/mydirectory/cron/shipping.txt";

It creates a file name called shipping.txt in that directory.  I'd like the filename to be like this:

shipping 20070912.txtStart Free Trial
 
Loading Advertisement...
 
[+][-]09.12.2007 at 01:45PM PDT, ID: 19879834

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Miscellaneous Programming
Tags: date, file, perl, append, stamp
Sign Up Now!
Solution Provided By: basicinstinct
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.12.2007 at 02:36PM PDT, ID: 19880180

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628