|There's more than one way to do things|
using strict and a config fileby lex2001 (Sexton)
|on Nov 12, 2001 at 12:30 UTC||Need Help??|
lex2001 has asked for the wisdom of the Perl Monks concerning the following question:
I'm using strict; with a basic email program. I have some html code (in my main perl script) that prints out a form that a user fills out. I have also created a config file that creates an array called @fields. So for each element in @fields I want to print out:
and so ...
However when I use strict; I get the following error:
The error line corresponds to:
but it obviously has a problem with the my @fields reference.
How can I use strict; and also use a separate config file? I want the config file so that my scripts can be portable. Is it a bad idea to use config file? If not then how can I make them work under strict;
thanks in advance.
Edited 2001-11-11 by Ovid