in reply to Installing .pm module with Strawberry Perl (Windows)

Is it a complete distribution (aka tarball) with a makefile? If so, install as usual. Unpack it and then
> perl Makefile.pl > make > make test > make install
In case of it being just a .pm file, just copy it anywhere where perl is looking ( @INC ).
perl -e 'print join "\n", @INC;'
Or create "lib" directory next to your script and
use lib "lib";


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^2: Installing .pm module with Strawberry Perl (Windows)
by ikegami (Patriarch) on Oct 30, 2017 at 17:35 UTC

    just copy it anywhere where perl is looking ( @INC ).

    No, place it here in the directory output by the following:

    perl -V:installsitelib

    Or create "lib" directory next to your script and use lib "lib";

    No, that won't always work before 5.26 (because it assumes the CWD is the script's directory), and it introduces a security vulnerability in setuid scripts. You want:

    use FindBin qw( $RealBin ); use lib "$RealBin/lib";
Re^2: Installing .pm module with Strawberry Perl (Windows)
by choroba (Cardinal) on Oct 30, 2017 at 17:15 UTC
    perl -e "print join "\n", @INC;

    Are you sure double quotes can be nested?

    perl -e "print join qq(\n), @INC"

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      Fixed. It's a pita. Too many shells with differing quoting mechanisms :)


      holli

      You can lead your users to water, but alas, you cannot drown them.