this line is not correct: use lib qw(/home/ccvob01/irf/lib/SendMail.pm); you should do, use lib qw(/home/ccvob01/irf/lib);
the .pm file is not included. On 10/23/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: > > > This is the error which I am getting > > Can't locate SendMail.pm in @INC (@INC contains: > /opt/rational/common/lib/perl5/5.8.6/sun4-solaris-multi > /opt/rational/common/lib/perl5/5.8.6 > /opt/rational/common/lib/perl5/site_perl/5.8.6/sun4-solaris-multi > /opt/rational/common/lib/perl5/site_perl/5.8.6 > /opt/rational/common/lib/perl5/site_perl/5.6.1 > /opt/rational/common/lib/perl5/site_perl .) at > /usr/add-on/puccase_admin/viewtools/unixbin/del_complete.pl line 5. > BEGIN failed--compilation aborted at > /usr/add-on/puccase_admin/viewtools/unixbin/del_complete.pl line 5. > > And the first few lines of actual perl script is > > use strict; > use warnings; > use SendMail 2.09; > use lib qw(/home/ccvob01/irf/lib/SendMail.pm); > my $CT="/usr/atria/bin/cleartool"; > > I have also created the lib dir. in above path and copied the > SendMail.pm. > > Please guide. > > Regards > Irfan. > > > > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Pang > Sent: Tuesday, October 23, 2007 1:38 PM > To: Sayed, Irfan (Irfan) > Cc: beginners@perl.org > Subject: Re: Perl module > > On 10/23/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > How to refer Perl module in Perl script which is not there in the @INC > > > path. I don't have permission to add this module in the @INC path > > > > I need to use the SendMail.pm module , but that is not there in the > > default @INC path. > > > > Can I refer the path of this module in my actual Perl script?? If yes > > how to do that > > > > Yes. First find the lib's path in your system,then `use lib` it. > > use lib qw(/my/lib/path); > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/