G'day sijaanh,

Welcome to the Monastry.

[Please note: Writing sloppy, "couldn't care less" posts, like you have above, will simply be ignored by many, and possibly downvoted. You would've been presented with a "Preview" screen and yet you chose to post what we see above. See "How do I post a question effectively?" for a better way to handle this.]

I get the impression from your post that you don't fully understand either "use VERSION" or "require VERSION". I don't have the vintage versions of Perl that you've mention; however, the following should provide useful examples (note that perle provides lots of feedback if problems are encountered).

$ alias perle alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E +' $ perlbrew list * perl-5.34.0 perl-5.33.5 perl-5.32.0 perl-5.30.0 $ perle 'use 5.034; no warnings "experimental::try"; use feature "try" +; try { 1 == 2 } catch($e) { }' $ perlbrew switch perl-5.32.0 $ perle 'use 5.034; no warnings "experimental::try"; use feature "try" +; try { 1 == 2 } catch($e) { }' Perl v5.34.0 required--this is only v5.32.0, stopped at -e line 1. main::BEGIN() called at -e line 1 eval {...} called at -e line 1 BEGIN failed--compilation aborted at -e line 1.

Ask further (and better) questions if you need more help with any of this.

— Ken


In reply to Re: use 5.005 with perl v5.16.3 by kcott
in thread use 5.005 with perl v5.16.3 by sijaanh

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.