Perl 4? Why not go all the way back to the 1987? You should be able to build Perl 1.0 from source on modern machines.

Found Perl 1.0_16 by Richard Clamp along with a hacker news story. This old p5p thread describes Richard's motivation for creating Perl 1.0_16 in Dec 2003. Also found an old Perl monks node from 2007: Does somebody have a PERL 0 (or 1.0) code

I was able to build Richard Clamp's perl-1.0_16 on a recent Linux box with just one hack to perl.h (added the #if 0 below to silence a compile error):

#if 0 #ifdef CHARSPRINTF char *sprintf(); #else int sprintf(); #endif #endif

Though primitive, it seemed to kinda work, at least this sanity test program worked fine:

print "hello world\n"; $x = 5; if ($x == 5) { print "x is 5\n"; } if ($x eq '5') { print "x is '5'\n"; }
If you attempt anything fancy (like use strict) it lets you know with the helpful error message "Memory fault". :)

See also gunie, by Allison Randal, an implementation of Perl 1.0 written in Go (which includes the original Perl 1.0 test suite).

Note that Perl 1.0 was officially released on 18 December 1987 (as mentioned in this quiz).

Update: see also modern perl 1.0 by cognominal (Oct 2021) and a few more refs from that thread:

BTW, I wonder if cognominal is a new incarnation of stefp.


In reply to Re: Obtaining old versions of Perl -- Perl 1.0 by eyepopslikeamosquito
in thread Obtaining old versions of Perl by nysus

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.