in reply to Re: Re: Re: Error::Simple
in thread use Error::Simple - can't be found in @INC
Hi again!
Here are my scripts, First SomeError.pm
Hotshot
Here are my scripts, First SomeError.pm
Now test.pl:package MyError::SomeError.pm; use Error::Simple; # the line that shouts @ISA = qw(Error::Simple); 1;
And now the error message I get:#!/usr/bin/perl -w use Error qw(:try); use MyError::SomeError; try { throw MyError::SomeError('Throwing some error'); } catch MyError::SomeError with { print "Caught it\n"; };
May I add that test.pl is placed under my home - ~/Perl/test.pl, and SomeError.pm is placed under ~/Perl/MyError/SomeError.pm.Can't locate MyErrors/SomeError.pm in @INC (@INC contains: /usr/lib/pe +rl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5 +/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8 +.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-lin +ux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendo +r_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5. +8.0) at MyError/SomeError.pm line3. BEGIN failed--compilation aborted at MyError/SomeError.pm line3. BEGIN failed--compilation aborted at ./test.pl line 4.
Hotshot
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re: Error::Simple
by broquaint (Abbot) on Aug 20, 2003 at 13:56 UTC | |
Re: Re: Re: Re: Re: Error::Simple
by tcf22 (Priest) on Aug 20, 2003 at 13:35 UTC | |
by hotshot (Prior) on Aug 20, 2003 at 13:47 UTC |
In Section
Seekers of Perl Wisdom