in reply to Been with Perl since the Beginning?

The first perl I used was some version 4. Later, I found out that 5 already existed at that point, which was why many things that I read about did work on my computer, but not on the web server I was using.

So I have experienced a transition from 4 to 5, and I have to say I couldn't live without references, lexicals and OO anymore. That's one of the major reasons I can't cope with PHP: it lacks real references and lexical variables.

The upgrade to 5.6 was great in many other ways. Lexical filehandles, lexical warnings, the our operator (lexical declaration of global variables), 3-arg open, 0binary notation, I like and use them all. This does mean my code is not compatible with the occasional 5.005 out there, but it makes everything a lot easier to create and maintain.

Upgrading to 5.8 was less spectacular. The only thing that comes to mind is that it has much better unicode support.

5.10 will shine again, with the introduction of the defined-or operator as the (for me) most important improvement.

I have used perl 1, and have even tried (for fun) to create Perl 1+4+5 compatible programs. It's possible! During this I learned a lot about Perl's history. See for example the archaic do syntax for calling subroutines, that is still supported in Perl 5!

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

  • Comment on Re: Been with Perl since the Beginning?

Replies are listed 'Best First'.
Re^2: Been with Perl since the Beginning?
by doom (Deacon) on Apr 24, 2005 at 21:45 UTC
    Juerd wrote:
    The first perl I used was some version 4. Later, I found out that 5 already existed at that point, which was why many things that I read about did work on my computer, but not on the web server I was using.
    Heh. I had that problem with "awk". I had the Aho, Kernighan, Weinberger book on the subject, and I was trying to follow along on a Sun box. It turned out Sun had decided that the latest version of awk was too different from the old one, and had arbitrarily renamed the new one "nawk". There wasn't any way this could be documented in the definitive book about Awk, because it had happened after the fact.

    Anyway, my story is that many people were telling me good things about perl for a long time (I have no idea what version of perl this started with, but it was pretty early -- I've got some friends who are serious unix-hipsters). I ignored what I was hearing until perl 5 was almost out for roughly three reasons:

    1. I've developed the habit of ignoring hype about the latest and greatest -- when I started in this biz the word was Pascal was going to save the world.
    2. I had just bought the aforementioned "Awk" book, and I don't like to move on from a subject until I feel like I've mastered it (this means that I don't move on very often).
    3. I'd been suffering with "rn" for a long time as my main newsreader, and I absolutely hated it, and couldn't imagine why I would want to touch something written by that guy Larry Wall.
      I'd been suffering with "rn" for a long time as my main newsreader, and I absolutely hated it, and couldn't imagine why I would want to touch something written by that guy Larry Wall.

      Did you also avoid patch?