brokenclay.org/journal

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.

Katja

2 Comments

  1. Katja

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

    Reply
  2. Randal L. Schwartz

    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.

    Reply

Leave a Comment

Your email address will not be published.

CommentLuv badge