Simple modification to the use strict pragma makes virtually any ActiveState Perl program strict compliant.
#!c:/perl/bin/perl -w use Strict; # instead of 'use strict'
Now your code should pass without any compilation errors. What a clever trick. ;)

Replies are listed 'Best First'.
Re (tilly) 1: strict-compliant code on windows
by tilly (Archbishop) on Jan 22, 2001 at 10:29 UTC
    For people who didn't get the joke, on Windows looking for "Strict" will find "strict.pm" so the require that is part of use will work. However you will then import Strict; which won't work so well because there is no function Strict::import. There is a strict::import but it can't do anything if it isn't actually called...

    This is why it is customary to have the package name match the file-name exactly, right down to case. :-)

    On Unix, of course, the file-system is case-sensitive so you will fail to find Strict.pm and this won't work.

(Guildenstern) Re: strict-compliant code on windows
by Guildenstern (Deacon) on Jan 23, 2001 at 00:20 UTC
    This has actually bitten me more than once. There's nothing more frustrating that accidentally mistyping a variable name and trying to figure out why something doesn't work as expected because strict apparantly didn't catch any problems.

    Guildenstern
    Negaterd character class uber alles!