nisha has asked for the wisdom of the Perl Monks concerning the following question:
hello.pl is the script which makes use of Hello.pm#!/usr/bin/perl package Hello; use Exporter; @ISA = ('Exporter'); @EXPORT = ('hello'); sub hello { print "Hello, world\n"; } 1;
I was running these on C:\ and it was working fine, the moment i moved these two into another folder Ex: c:\test \testbvt and tried running them it gave me an error as below.#!/usr/bin/perl use Hello; hello();
Could you please guide me as to how to go about implementing it. Looking forward for your assistance.C:\GSDBVTAS\GSDBVTMAIN>perl hello.pl Can't locate Hello.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site +/lib .) at hello.pl line 3. BEGIN failed--compilation aborted at hello.pl line 3.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Creating new perl modules.
by mulander (Monk) on Oct 26, 2005 at 05:48 UTC | |
by radiantmatrix (Parson) on Oct 26, 2005 at 19:15 UTC | |
by nisha (Sexton) on Oct 26, 2005 at 07:17 UTC | |
Re: Creating new perl modules.
by murugu (Curate) on Oct 26, 2005 at 05:22 UTC |