Hello all,
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:
<input type="text" name="$fields[0]" size="24">
and so ...
However when I use strict; I get the following error:
Global symbol "@fields" requires explicit package name at /Library/Web +Server/CGI-Executables/mailto/mailto.cgi line 106.
The error line corresponds to:
print<<HTML;
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
In reply to using strict and a config file by lex2001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |