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

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...

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

Replies are listed 'Best First'.
Re^4: How to PRINT CGI html table to a PNG file
by hippo (Archbishop) on Aug 22, 2018 at 14:32 UTC
    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>

        You get a ++ for the <blink>*Cheers*</blink> and another for defending simple HTML generation. It’s mostly why I still reach for CGI(::Pretty). Since I can’t give you two ++s and I’m irritated by the thread I’ll hunt for a reason to take one back… Ah, the backronym--. Back to += 1 for that. :P

Re^4: How to PRINT CGI html table to a PNG file
by Your Mother (Archbishop) on Aug 22, 2018 at 16:18 UTC

    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;"!

        The topic is promoting old tech. This is valid Perl–

        print &CGI'header;

        Suggesting you should use it will get you criticized. Defending the utility of older technology is one thing and it's fine and good in context and with caveats. Asserting, aggressively, asocially, it's as good as new technology, nay, better!, and should be chosen over it "because it still works" and ships on boxes that don't ship with npm, for a single example, does a huge disservice to the seekers of wisdom.