in reply to Re^2: Explicit package name Warning!!!
in thread Explicit package name Warning!!!

Yes. Copy the code you posted in your original question (aka OP, "Original Post", not to be confused... er, well, often confused because ambiguous with "Original Poster") and compare it, letter-by-letter, punct-by-punct; and space-by-space, if necessary, with the code that's giving you the problem. Doing so will reveal your typo.

Then correct it or paste what you copied over your original code; add use strict; use warnings (not needed with 5.16 and higher update: if the script includes the line use 5.01n; where n is a relevant decimal digit) at the top, just after the hashbang. Voila; all should run as you expected, originally.

Hint: when posting, copy and paste rather than retype. Doing so will save you the pain of discovering later that you've corrected an error or created a new one by retyping.


If you didn't program your executable by toggling in binary, it wasn't really programming!

Replies are listed 'Best First'.
Re^4: Explicit package name Warning!!!
by hdb (Monsignor) on Jun 05, 2013 at 13:54 UTC

    Can you clarify:

    (not needed with 5.16 and higher)

    I am running Strawberry Perl 5.16.3 and I do not get any trouble with undeclared variables unless I use strict;

      Can't say whether my hasty comment is applicable to Strawberry's implementation, but, clarifying and correcting the parenthetical statement at least with respect to my flavor (ActiveState):

      (not needed with 5.016 and higher if the script includes the line use 5.01n; where n is a relevant decimal digit)


      If you didn't program your executable by toggling in binary, it wasn't really programming!

        Thanks for the clarification, that does the trick.