myristicin
Programmer
I need to write a text file and name it with a numeric code submitted by a HTML form. Example - if the numeric for thanksgiving is 112405, I want to create a new text file called 112405.txt and then use the same perl script to overwrite it in the future by passing the same numeric. whew! here's my plan... will it work? any suggestions?
---
##.txt is appended to it so it will represent a text file name##
my $date = '$FORM_DATE{"numeric"}.txt;
##now I substitute the $date for the file I want to create and or overwrite##
open (TOFILE, "+>$date");
##ad now I would use print command to write or overwrite the file##
---
Gary
---
##.txt is appended to it so it will represent a text file name##
my $date = '$FORM_DATE{"numeric"}.txt;
##now I substitute the $date for the file I want to create and or overwrite##
open (TOFILE, "+>$date");
##ad now I would use print command to write or overwrite the file##
---
Gary