in reply to use win32::perms without installing it

Why can't you install Win32::Perms naturally?

anyways, you were close in your manual attempts .. make your file structure look like this (but be aware this still might not work if there are other files that Win32/Perms.pm depends upon):
  yourscript.pl
  Win32/Perms.pm
And then in yourscript.pl do:
use lib qw/ c:\wherever\that\stuff\is /; use Win32::Perms;
Look at perldoc -f use<c> and <c>perldoc -f require for more info how how tihngs are included..

Replies are listed 'Best First'.
Re^2: use win32::perms without installing it
by Anonymous Monk on Sep 07, 2005 at 08:48 UTC
    Tried your suggestion with and without setting PERL5LIB to the c:\mylibs dir which contains a win32/ dir with the perms.pm in it. This is what I get when trying to load the example script included with win32::perms:

    Can't locate loadable object for module Win32::Perms in @INC (@INC contains: c:\ mylibs C:/Perl/lib C:/Perl/site/lib .) at showperm.pl line 18 Compilation failed in require at showperm.pl line 18. BEGIN failed--compilation aborted at showperm.pl line 18.:

    Apparantly there is something more to be done than just putting the files somewhere and adding the path to @INC: