in reply to Re: strict.pm error
in thread strict.pm error

Thanks a lot, I had an old perl version on PC and the newer version in bin directory. I cannot change path and settings on my notebook. The Version did in deed not match the strict.pm. Sorry I am an bloody greenhorn

Replies are listed 'Best First'.
Re^3: strict.pm error
by Corion (Patriarch) on Dec 22, 2011 at 13:42 UTC

    You can indeed change the path and the environment before invoking Perl. For example, I use a batch file like this to set up the environment for every version of Perl I use:

    @echo off set base=%~dp0 path %BASE%perl\bin;%BASE%c\bin;%BASE%perl\site\bin;%PATH%

    This file lives in the base directory of every Perl installation I have, like C:\strawberry-5.10 and C:\strawberry (which is currently 5.12). If I want to switch to a particular Perl, I invoke the batch file in the appropriate directory and thus switch the Perl for that shell window.