in reply to Re: Add timestamp to helpdesk form
in thread Add timestamp to helpdesk form

It's for a class assignment. Essentially using PERL to create the HTML code which returns the information input to a CGI file on the server. http://tinypic.com/r/19qjch/8 here is what I currently have. Just need to add a way for a timestamp to be submitted as well

Replies are listed 'Best First'.
Re^3: Add timestamp to helpdesk form
by kennethk (Abbot) on Jul 03, 2014 at 20:55 UTC
    I would use DateTime to collect and format the stamp. That code will be inserted into the /cgi-bin/helpdesk.cgi script.

    As an aside, you would not have formatting issues with your desired post if you wrap it in <code> tags ... see Markup in the Monastery.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      DateTime is overkill for this. strftime (or if you insist, Time::Piece) is a much more lightweight approach. This is IMHO, of course. :)

      You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.