in reply to Re: How to PRINT CGI html table to a PNG file
in thread How to PRINT CGI html table to a PNG file

It would also only be fair to theravadamonk to point out that the documentation for that very module says, "HTML Generation functions should no longer be used".

  • Comment on Re^2: How to PRINT CGI html table to a PNG file

Replies are listed 'Best First'.
Re^3: How to PRINT CGI html table to a PNG file
by Anonymous Monk on Aug 22, 2018 at 13:21 UTC
    CGI is a core module on millions of computers. Apple ships Perl 5.18.2/CGI with macOS on brand-new Macs as one example. There are countless nodes on Perlmonks recommending and teaching CGI. Just because some newbie hijacked Perl's most popular and useful module does not mean you weirdos who troll every CGI node don't look ridiculous. CGI.pm represents 17 years of development by a huge number of people and trying to throw it away is disrespectful nonsense.

    This is not a video game.
    CGI is not the bad guy.
    Even though you get points here for killing him.

    Points! And an imaginary cup of coffee...

      There are countless nodes on Perlmonks recommending and teaching CGI.

      I recommend CGI. Sometimes I even recommend CGI.pm. I don't recommend using the HTML generation fuctions of CGI.pm. Those are 3 different things.

      Perhaps you'd care to read some of my fervent defences of CGI on this site before labelling me one of the "weirdos who troll every CGI node". You will receive no further feeding from me today in any case.

        > I don't recommend using the HTML generation fuctions of CGI.pm.

        Can you please explain why: exactly? Generating HTML with subroutines is powerful, clean, fun. The concept seems to originate with the author of Devel::NYTProf about a year after the web was created. From HTML::AsSubs:

        Date: Tue, 4 Oct 1994 16:11:30 +0100 Subject: Wow! I have a large lightbulb above my head! Take a moment to consider these lines: %OVERLOAD=( '""' => sub { join("", @{$_[0]}) } ); sub html { my($type)=shift; bless ["<$type>", @_, "</$type>"]; } :-) I *love* Perl 5! Thankyou Larry and Ilya. Regards, Tim Bunce.
        Next year Perl will celebrate 25 years of functional HTML generation as one of the many supported Practical Extraction and Report Languages! <blink>*Cheers*</blink>

      I'm a 20-year CGI vet here to say you're right, CGI is not the badguy. You are. Your attitude is toxic and it makes your salient points indigestible. And using center() in HTML code? Why not add your myspace link to your sig so everyone knows when your skills ossified?

        > And using center() in HTML code?

        You are seriously off-topic my friend. The OP used a center tag which is valid HTML 4.01 supported by all major browsers. I would of course use the absurdly more verbose CSS style="text-align:center;"!