OpenBSD 2.8 (i386)
perl v5.6.0 built for i386-openbsd
Apache 1.3
And here's the output of your script:
File saved as test (original filename=/home/mosfet/test)
so.... All idiomatic problems aside (like that whole "if" around the regex thing) your script is FINE. There are no relevent bugs in "use strict", which using, by the way, is about the best thing anyone can do in a production environment. If your coworkers give you that whole *@#$! about use strict being only for beginners or what-not, I'm sorry, they're just wrong. use strict is a GOOD IDEA. Unwillingness to use strict can lead to large problems that wouldn't happen in other languages. That's why it's there.
The one reason I can find that your script may not be working is the use of $CGI::SL. On my system it's "/", which is correct for *nix. Since this is determined by the server, it may not change properly for Windows. I can't test this because I don't have access to Windows. But if that's the case, that could be your problem.
PS: Just for kicks I tried it with "use diagnostics" and no errors were produced...
In reply to Works great for me!
by osorronophris
in thread Bug in 'strict'??
by Jouke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |