http://www.perlmonks.org?node_id=1031933


in reply to CGI.pm and HTML5

Generating a web page with CGI is kinda like assembling a bookshelf by gluing chopsticks together. Yes, you get there, but you spend too much effort dealing with tiny details.

Take a look at Catalyst, Dancer, Mojolicious, which greatly simplify the process of generating a set of pages for a website, including templating, common elements, authorization, and so on.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Replies are listed 'Best First'.
Re^2: CGI.pm and HTML5
by space_monk (Chaplain) on May 03, 2013 at 17:07 UTC

    Yes I would love to use more modern modules to do this but I'm a bit constrained by the environment I have to work in. None of those modules are installed. Its a fairly vanilla Perl 5.8.8 installation

    If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

      I just installed Dancer on an old Solaris system with 5.8.8, no issues.

        I'm not disputing it is possible to install better modules, I am disputing that getting through the company bureaucracy to get extra modules installed will take longer than the two weeks I have left on my contract.
        If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

      While I can empathize with the need for infrastructure stability, relying on a seven year old release of any 'progressing' product is not good. Maybe you could use this bit friction to open a dialog with your 'powers to be' about modernizing the toolset?

      -derby

        You have no idea!! :-) I'm a consultant on a short term contract, and whilst it wasn't my brief I wrote a plan to upgrade their applications {partly in the hope they'd extend my contract :-) }. They're still running Firefox 3 for goodness sake...

        If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)