I have a script that I use to create news files in html and I include it on my pages using SSI. I have found a weird bug. When I try to post the text (without quotes): "cd " or "cd," or "cd$", I get an Internal Server Error. I think that it has to do with the way it is parsing the text. It...
That worked...Thanks.
So if I wanted to adjust time for -3 hours, would the code look like:
my $mtime = (stat("calendar_events.txt"))[9];
use Time::Format qw(time_format);
print time_format ('HH:mm{in} AM Mon dd, yyyy', $mtime-3*24*60*60);
Darn this didn't work for me. I looked my host's installed perl modules and didn't find Time::Format. Any other options?
Sorry if I am asking stupid questions, I have not been working with perl in a long time since I stopped learning it because my job description changed.
Thanks. That worked like a charm. Now how do I control the formatting of the date/time and also subtract out 3 hours to account for the fact that the server time is +3 hours from me?
Thanks I really appreciate your help Kirle.
I have a calendar script, "calendar.pl" that parses a template and a data file "calendar_events.txt", which contains the events to output a calendar. My question is, how can I include the last modified for the "calendar_events.txt" into the output?
One idea was to create code that would parse...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.