in reply to Re^2: Sharing a variable between (>=) 2 files
in thread Sharing a variable between (>=) 2 files

The "real" problem is, that using 'strict' and 'warnings' does not influence require()d files, so references to unused variables in your require()d file don't give warnings or errors.

Btw: Do I now have a reputation of -1 because my question sucked or simply because I asked 1 question and answered 0 so far (and 0 - 1 = -1)?
If you mean, why has your post a rep of -1, it probably means 1 of the "regulars" downvoted your post for some reason and none of them bothered to upvote it.

Don't worry too much about it unless you get below -5 or so. Large (positive or negative) XP values indicate a sort of consensus. Small XP values change a lot.

  • Comment on Re^3: Sharing a variable between (>=) 2 files

Replies are listed 'Best First'.
Re^4: Sharing a variable between (>=) 2 files
by dichtfux (Sexton) on Dec 01, 2007 at 14:51 UTC
    The "real" problem is, that using 'strict' and 'warnings' does not influence require()d files, so references to unused variables in your require()d file don't give warnings or errors

    True. I played around a bit with the code yesterday and also noticed that. When I added 'use strict' to settings.pl, I got a bunch of warnings with the old (wrong) code.