This is not specific to CGI.pm
Taint mode will require that you set $ENV{'DOCUMENT_ROOT'} for yourself.sub include { my $file = shift; open my $fh, '<', $ENV{'DOCUMENT_ROOT'}.$file or return; while (<$fh>) { print } close $fh or return; return 1; }
After Compline,
Zaxo
In reply to Re: include statement in perl?
by Zaxo
in thread include statement in perl?
by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |