G'day schwende,

I am dealing with a script that broke, after an os upgrade ... Any ideas are welcome

I'm not a Web programmer, never written a CGI program, so I'll just offer a few general ideas ... hoping they're welcome. :-)

As strongly cautioned by Fletch:

If you're doing anything serious with Perl you DO NOT want to use the OS' perl as that way lies much pain. Doing so couples you tightly to the OS' upgrade schedule for both the language and (if you're using its package manager for them) CPAN modules.

Many of us have learnt the hard way not to meddle with the system Perl on Unix systems. Much less pain to roll your own that you can control and freely experiment with, without risking breaking the system Perl, and without the risk of OS upgrades to the system Perl breaking your production systems. The same basic arguments apply to Python and other scripting languages BTW.

All the other cgi scripts work fine, but 1.

Anything stand out as different in the one that doesn't work? Do they all use CGI.pm? I ask because CGI.pm is no longer in the Perl core (the last Perl core that included it was perl v5.20). Posting representative code snippets from the one that doesn't work vs the many that do might provoke a useful response.

See also Re^9: XML tags using perl CGI by hippo, which mentions a few low-fat CGI modules that are preferable to CGI.pm nowadays.

👁️🍾👍🦟

In reply to Re: os upgrade breaks cgi by eyepopslikeamosquito
in thread os upgrade breaks cgi by schwende

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.