Hi - I have a Perl-based CGI script which used to run perfectly fine under Perl v5.00? (4? not sure), but which does not work at all under v5.6 (my dagblasted sysadmin changed versions on me without letting me know, so I'm scrambling to fix the problem).

Firstly, is there a list of modifications between different versions of Perl that I can peruse? I checked the FAQ and didn't see any such thing.

Secondly, might anyone know why the following code no longer works? It worked fine just yesterday... assume that $action and $package are not hardcoded, but are values that were looked up in a database....

my @vars; my $action = 'doit'; my $package = 'myperl::package'; eval "require $package"; &error( "No such package: $package ? ($! $@)" ); my $act = $package->new( $action ) or &error( "No proper action taken" + ); &$act( @vars ) or &error( "Failure to act" );
The code works fine until the last line, and then just stops (doesn't even display the error message). Any insight would be greatly appreciated....

In reply to changes between Perl v5.00? to v5.6 by skunspauk

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.