Perl

I’ve spent the last three days hacking somebody else’s Perl scripts (oh, and learning Perl), so I haven’t had much time to think about anything else.

I’m not sure I’m crazy about a language that lets you use variables before you declare them.

Comments

2 Responses to “Perl”

  1. Randal L. Schwartz on June 17th, 2004 8.32

    You said “I’m not sure I’m crazy about a language that lets you use variables before you declare them.”.

    You are probably using Perl in “small program mode” then. Turn on “use strict;” at the beginning of your code, and you enter “large program mode”. In particular, all variables will then have to be declared at first use.

    I detail this in my book, “Learning Perl”. Check it out. Or check out my website, with nearly 200 free magazine articles about Perl, some at the very beginning level where you’re at.

  2. Katja on June 17th, 2004 9.09

    Excellent, thank you very much! I actually have your book “Programming Perl” and it’s been a lot of help.