in reply to Missing Image.al?
You haven't by any chance accidentally omitted the new when constructing an image? For example in some piece of code similar to this
use GD; my $img = new GD::Image(100,100);
I'm asking because if you wrote
use GD; my $img = GD::Image(100,100);
you'd get the very error message you're seeing
> perl 676872.pl Can't locate auto/GD/Image.al in @INC ...
This is because in this case a subroutine Image would be tried to be called in the GD namespace. As this subroutine doesn't exist, the call would be routed to the AutoLoader (which can't locate it either, simply because there is no such sub...) OTOH, new GD::Image() (which could also more clearly be written as GD::Image->new() ) would call the method new in the package/namespace GD::Image, which is what you want to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Missing Image.al?
by Anonymous Monk on Aug 25, 2009 at 07:42 UTC |