Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Tao Perl Ching - The Scripture of the Way of Perl

by itub (Priest)
on Dec 18, 2004 at 19:52 UTC ( [id://415903]=note: print w/replies, xml ) Need Help??


in reply to Re: Tao Perl Ching - The Scripture of the Way of Perl
in thread Tao Perl Ching - The Scripture of the Way of Perl

I agree that CGI.pm is generally not the best CGI module. But its main advantage is that comes pre-installed on the system because it is a core module. Sadly, it has a lot of historical cruft that has to be kept for backwards compatibility. As for it not being "modern" I suspect it is because it was originally written a very long time ago.
  • Comment on Re^2: Tao Perl Ching - The Scripture of the Way of Perl

Replies are listed 'Best First'.
Re^3: Tao Perl Ching - The Scripture of the Way of Perl
by Juerd (Abbot) on Dec 18, 2004 at 21:02 UTC

    I agree that CGI.pm is generally not the best CGI module. But its main advantage is that comes pre-installed on the system because it is a core module.

    I prefer to call that "standard module" and call modules that enable core functionality "core modules", like strict, warnings and File::Glob.

    Anyway, it's not hard to deal with both, as interfaces are compatible:

    # Fall back to CGI.pm if CGI::Simple is unavailable. # We prefer CGI::Simple because it much lighter and faster. my $cgi = eval { require CGI::Simple; CGI::Simple->new } || do { require CGI; CGI ->new };
    I do think avoiding CPAN modules is a bad idea.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://415903]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-18 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found