in reply to Layers of Software

Quick question: was the $row variable lexically scoped, i.e. declared with my in your code? If so, I'm curious how Embperl picked it up, I thought this sort of thing is exactly what lexical scoping is supposed to prevent.

Replies are listed 'Best First'.
Re^2: Layers of Software
by samizdat (Vicar) on Oct 19, 2005 at 16:00 UTC
    Wasn't originally, is now. As well as being renamed for clarity. :D
      Ah right, thanks. In which case, wouldn't the other moral of the story be: Always use strict? ;-)
        wouldn't the other moral of the story be: Always use strict?

        I'd say moral of the story is, "use lexical variables." You don't have to use strict to do that, it just helps force your hand. Also, the word "always" is kind of dangerous, unless of course you meant the variety of "always" that is commonly -- but not always -- in effect. :-)

        /me heads to the corner store looking for sackcloths and ashes.