I started learning Perl back when Debian had 5.6 installed as default. This was probably in the Potato days -- 2001 or so.

Usually I sample a few systems I use, and code for the oldest one. Today Debian (stable) has 5.10.1, FreeBSD 5.12.4, and Gentoo was at 5.12.* IIRC. Therefore, I'd consider 5.10 a "safe" version.

Here's the odd thing. I still code as if I was coding for 5.6. I suspect much of my code (except perhaps the things dealing with character encodings) work fine in that version. I just don't have an installation that old to test on.

No, I haven't scoured perldelta for interesting things. I just decided that, being the conservative person I am (tech-wise), I don't actually need the features offered in 5.10. State variables can be done without a special keyword. given/when syntax feels alien to me. Smart-matching, well, it can come in handy, but I never learned to use it. Defined-or is just a shortcut. Yes, I suppose I would use those features the times they greatly enhance the clarity of the code, but the other times, I'll just keep on coding in my old ways.

All this really leaves up to question is CPAN modules. They are free to depend on a version >5.8, and my installed Perl hopefully accommodates that dependency. I haven't been bitten by that sort of thing yet.


In reply to Re: What is a really old version of Perl? by Anonymous Monk
in thread What is a really old version of Perl? by Argel

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.