Hello everyone. I always run Perl scripts on a web server with
#!/usr/bin/perl -T
at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I get:
"-T" is on the #! line, it must also be used on the command line at forum.cgi line 1
I have tried using the T flag on the command line like it says but this has no effect. This happens whether I use #!"C:\Perl\bin\perl -T" (the actual location of Perl on my machine) or the UNIX style #!/usr/bin/perl -T. Does anyone know why this happens? Any help appriciated.
Steven.
EDIT: I do most testing of the app I am working on with apache on my machine. This reports a server error when I try to use taint mode as described above, which I assume is the same problem manifesting itself.