Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Replacing CGI.pm

by afoken (Chancellor)
on Jun 20, 2018 at 18:47 UTC ( [id://1217039]=note: print w/replies, xml ) Need Help??


in reply to Replacing CGI.pm

I would like to upgrade our servers OS from Wheezy to Debian Stretch which does not have CGI.pm in the Perl core. I believe the upgrade to Stretch will leave CGI.pm intact (which the scripts need), but if not, what do I do?

Debian Stretch should have a package containing CGI.pm. https://packages.debian.org/search?searchon=contents&keywords=%2FCGI.pm&mode=path&suite=stable&arch=any lists several packages containing a file named CGI.pm. libcgi-pm-perl seems to be the right one.

apt-get install libcgi-pm-perl

... and you have CGI.pm back, unfortunately the 4.x series that lacks proper upgrade information. Read the change log (/usr/share/doc/libcgi-pm-perl/changelog.Debian.gz and /usr/share/doc/libcgi-pm-perl/changelog.gz after package installation) in addition to the documentation. "CGI::param called in list context" confusion also contains useful information.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found