I suppose you might want to use CGI.pm for some low level stuff but I find I can still get most of what I need by copy and pasting stuff from Matt's CGI scripts (http://www.scriptarchive.com/).
For a much more modern approach, use Plack/PSGI, and one of the many frameworks built using it.
No one should use Matt's stuff, unless you want huge security exploits.
Yes. That's the point I was making.
Mind you, Matt's CGI scripts are no worse than a lot of PHP that is floating around these days...
(I came to make a cgi-lib.pl compatibility mode gag, but your joke was better...)