Sep 11, 2006 #1 nuarj83 Programmer Aug 30, 2006 6 US Hi, I am trying to deliver all my output to text file, but situation is, text file's name must be current(system) date; and it on windows. Can anyone, send the logic concerned to this issue. Appreciate any kind of help. Thanx
Hi, I am trying to deliver all my output to text file, but situation is, text file's name must be current(system) date; and it on windows. Can anyone, send the logic concerned to this issue. Appreciate any kind of help. Thanx
Sep 11, 2006 #2 Kirsle Programmer Jan 21, 2006 1,179 US Try localtime? http://search.cpan.org/~nwclark/perl-5.8.7/pod/perlfunc.pod#localtime Upvote 0 Downvote
Sep 12, 2006 #3 AMiSM Technical User Jan 26, 2006 128 US This article is a bit more tutorial: http://perl.about.com/od/perltutorials/a/perllocaltime.htm Get the required fields from localtime, then assemble a file name in the proper format: $path = "C:\\somefolder\\$year$month$day.txt"; Upvote 0 Downvote
This article is a bit more tutorial: http://perl.about.com/od/perltutorials/a/perllocaltime.htm Get the required fields from localtime, then assemble a file name in the proper format: $path = "C:\\somefolder\\$year$month$day.txt";