Errin Larsen wrote:

{ package Config; do "configtest.conf" }

print "$_\n" for( @Config::FILE_NAME );

<snip>

Now, this code runs, and produces the expected output.  However, it
also gives me a warning:
  Name "Config::FILE_NAME" used only once: possible typo at
./configtest.pl line 7.

I realize I can just turn my pragmas off after testing/implementation
to get rid of this, but is there a better way?

Nothing prevents you from declaring @FILE_NAME:

    package Config;
    our @FILE_NAME;
    do "configtest.conf";
    print "$_\n" for @FILE_NAME;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to