Mak3r has asked for the wisdom of the Perl Monks concerning the following question:
Now, my invocation script recognises RemoteException and DeployException, but not WineException or BeerException. If I invoke BeerException with use, Perl comes back with "Cannot find BeerException.pm". Am I being incredibly dense here?use strict; use warnings; package RemoteException; use Error; use base qw(Error); use overload ('""' => 'stringify'); sub new { my $self = shift; my $text = "" . shift; my @args = (); local $Error::Depth = $Error::Depth + 1; local $Error::Debug = 1; # Enables storing of stacktrace $self->SUPER::new(-text => $text, @args); } 1; package WineException; use base qw(RemoteException); sub h{ print "heheh\n"; } 1; package DeployException; use base qw(RemoteException); sub h{ print "heheh\n"; } 1; package BeerException; use base qw(RemoteException); sub h{ print "heheh\n"; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: packages within packages
by Corion (Patriarch) on Jan 23, 2009 at 11:36 UTC | |
|
Re: packages within packages
by Joost (Canon) on Jan 23, 2009 at 11:38 UTC | |
|
Re: packages within packages
by Mak3r (Novice) on Jan 23, 2009 at 13:27 UTC | |
by Mak3r (Novice) on Jan 23, 2009 at 13:28 UTC | |
|
Re: packages within packages
by Bloodnok (Vicar) on Jan 23, 2009 at 11:43 UTC | |
by shmem (Chancellor) on Jan 23, 2009 at 16:13 UTC | |
by Bloodnok (Vicar) on Jan 23, 2009 at 16:28 UTC | |
|
Re: packages within packages
by Mak3r (Novice) on Jan 23, 2009 at 12:59 UTC |