C
Chet Douglas
I have a perl script that reads a text file and converts the format.
One line of the text file has a date that is extracted and read into
the output file. Here is the line with the date from the source text
file.
EFFECTIVE 12:00 AM ON 04/25/06, YOUR BUYING PRICES ARE CHANGED AS
Here is the section of the perl script that reads that line and sets
04/25/06 as $effDate
elsif (index($line, "EFFECTIVE") == 0) {
@words = split(/\s+/,$line);
$effDate = $words[4];
chop($effDate);
}
How can I get $effDate to be the next day in the output file? I need
to add 1 to 04/25/06 so the date will be 04/26/06 in the output file.
One line of the text file has a date that is extracted and read into
the output file. Here is the line with the date from the source text
file.
EFFECTIVE 12:00 AM ON 04/25/06, YOUR BUYING PRICES ARE CHANGED AS
Here is the section of the perl script that reads that line and sets
04/25/06 as $effDate
elsif (index($line, "EFFECTIVE") == 0) {
@words = split(/\s+/,$line);
$effDate = $words[4];
chop($effDate);
}
How can I get $effDate to be the next day in the output file? I need
to add 1 to 04/25/06 so the date will be 04/26/06 in the output file.