Hi I'm trying to get some old Perl scripts written for a Solaris Unix server to work on a windows server. The installation seemed to go fine but I'm having trouble locating a module. Using ppm I can find the Mail::Sender module in a local repository but when I try and compile/run my code it comes up unable to find Mail::Sender.
ppm> install mail::sender Searching for 'mail::sender' returned multiple results. Using 'search' + instead.. . Searching in Active Repositories 1. Mail-Sender [0.8.13] Send mails with attachments through a S +MTP serv~ 2. Mail-Sender-Easy [v0.0.5] Super Easy to use simplified interface +to Mail:~ ppm> 1 Unknown command '1'; type 'help' for a list of commands. ppm> uninstall mail::sender Error: package 'mail::sender' is not installed. ppm> uninstall Mail::Sender Error: package 'Mail::Sender' is not installed. ppm> install Mail::Sender Searching for 'Mail::Sender' returned multiple results. Using 'search' + instead.. . Searching in Active Repositories 1. Mail-Sender [0.8.13] Send mails with attachments through a S +MTP serv~ 2. Mail-Sender-Easy [v0.0.5] Super Easy to use simplified interface +to Mail:~ ppm> q C:\Perl\bin>cd ../../scripts C:\scripts>cr_trans_sh.pl Can't locate Mail/Sender.pm in @INC (@INC contains: /home/interface/se +ctran/lib /home/interface/scripts/Perl_Modules C:/Perl/lib C:/Perl/site/lib .) a +t C:\scrip ts\cr_trans_sh.pl line 14. BEGIN failed--compilation aborted at C:\scripts\cr_trans_sh.pl line 14 +.

The only change to the script was the first line indicating where Perl is loaded from - was #!/usr/bin/Perl and is now just #!Perl.
The begining of my script is
#!perl -c # ############################################################### # Extra Modules should be declared here. # # All these modules MUST be found on the server attempting to # # call this script. # ############################################################### # use strict ; # Enforce private + variables use lib '/home/interface/scripts/Perl_Modules' ; # Where ACC_Vario +us lives use lib '/home/interface/sectran/lib' ; # Where SECTRAN l +ives use sectran ; # In-House FTP Pe +rl Module use Cwd ; # Current Working + Directory Module use Mail::Sender; # Email module #

I suspect I'm missing something obvious but I can't see it. Anyone know what mistake I've made?
Cheers

In reply to Perl Modules in Windows problem by Ronnie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.