Hello,
I am using MacPerl here.
After adding:
' use strict; '
and am now getting several warnings..
In my library I have %FORM_DATA declared,
File "hd:Perl:Cgi class:useractive:guest book:guestin.pl";
Line 9: Global symbol "FORM_DATA" requires explicit package name.
How can I avoid the above warning?
#!/usr/bin/perl -w
# CGI Script
use strict;
require "libcgi2.pl";
&parse_input; # sub in our library
#strip leading or trailing white space from all our form elements
foreach my $key (keys %FORM_DATA){
$FORM_DATA{$key} =~ s/^\s+|\s+$//g;
}
....ect.....
Maybe some one could chime in about explicit packages.
Thanks
Dave
*====================================================*
* Cora Connection Your West African Music Source *
* http://www.coraconnection.com/ *
* Resources, Recordings, Instruments & More! *
*====================================================*