Sep 11, 2006 #1 nuarj83 Programmer Joined Aug 30, 2006 Messages 6 Location 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 Joined Jan 21, 2006 Messages 1,179 Location 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 Joined Jan 26, 2006 Messages 128 Location 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";