in reply to Barewords equal zero?

Fundamental to learning and using Perl effectively is to always use strictures (use strict; use warnings;) as you have now discovered. ;)


Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^2: Barewords equal zero?
by Cody Pendant (Prior) on Feb 11, 2008 at 23:20 UTC
    You seem not to have read my post.


    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...

      You seem to have updated your post since I read it.

      The fact that the assignment line isn't prefixed with my is a strong hint that you weren't using strictures. What you show people is what they will do. Show them strictures right from the start - even for trivial code like your sample. At the very least assume strictures and stick a my in front of the assignment.


      Perl is environmentally friendly - it saves trees
      A reply falls below the community's threshold of quality. You may see it by logging in.