mcarthey has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, I'm running perl 5.8.2 in Windows and am having a problem. I have the module Spreadsheet::ParseExcel in a subdirectory and have successfully executed the Makefile.PL and executed nmake. I have also verified the blib directory structure has been created. The problem is that when I try to run the following I get an error.
V:\Perl>perl -Mblib ParseExcel/Spreadsheet-ParseExcel-0.49 errorlog.pl + file.csv Can't open perl script "ParseExcel/Spreadsheet-ParseExcel-0.49": Permi +ssion denied
Thanks for any help!

Replies are listed 'Best First'.
Re: perl -Mblib and permission denied
by cdarke (Prior) on Aug 03, 2009 at 20:10 UTC
    Not sure why this would happen, but right-click on the file in Windows Explorer, select Properties, and ensure that "Read-only" is not set. Unset it if it is.
Re: perl -Mblib and permission denied
by Anonymous Monk on Aug 04, 2009 at 03:07 UTC
    Can't open perl script "ParseExcel/Spreadsheet-ParseExcel-0.49"

    ParseExcel/Spreadsheet-ParseExcel-0.49 is not a perl script.

    perldoc blib perlrun

    perl -Mblib script [args...] perl -Mblib=dir script [args...]
    So
    perl -Mblib=ParseExcel/Spreadsheet-ParseExcel-0.49 errorlog.pl file.cs +v
      Wow, that was a head slapping moment for me. Sorry about that. I completely overlooked the '=' sign. I checked the docs, but didn't read carefully enough. Thanks for catching this for me. :\