Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Requires explicit package name

by Anonymous Monk
on Nov 28, 2008 at 18:59 UTC ( [id://726651] : note . print w/replies, xml ) Need Help??

in reply to Re: Requires explicit package name
in thread Requires explicit package name

Supplying a package name *is* a valid way to remedy this problem.
use strict; $::some_var = "some value"; print $::some_var;
Works fine.

Replies are listed 'Best First'.
Re^3: Requires explicit package name
by Narveson (Chaplain) on Nov 28, 2008 at 21:27 UTC
    So does
    no strict; $some_var = "some value"; print $some_var;

    Would we sincerely recommend either method of silencing the error messages in the original post?

      No, I wouldn't :)
      I was merely trying to point out that the problem could be fixed by following the suggestion made in the error message, not that it necessarily was the best option ;)