The value of explaining a problem to yourself like you would to someone else [Was going to be: Program does not do what I want but produces no error messages either]

Tom Hukins tom at
Thu Oct 14 15:53:41 PDT 2010

On Thu, Oct 14, 2010 at 10:00:41PM +0100, Andy Selby wrote:
> > I've read the documentation for Image::Thumbnail (under ERRORS) and I
> > don't understand what it means.  Good luck.  I'd be inclined to check
> > what $t contains, though - maybe it's undef on error.
> Global symbol "$t" requires explicit package name

That error suggests you're checking $t outside its scope.  You define
it within the foreach loop - if you try to check it outside there
you'll see the error you mention.

You assign to $t on the line beginning "my $t".  Try to see what's
inside it after you've assigned to it but within the same {} delimited

> Ohh, thanks for those, I used Image::Thumbnail because it was one of
> the first shown on a cpan search.

Finding "good" CPAN modules involves a peculiar set of assessments.  I
think the best way I've heard it described is as "a bit like
Goldilocks and the three bears" but I doubt that helps.  Sorry.
Perhaps it's all about keeping trying them until you find the "just
right" modules for you.


More information about the MiltonKeynes-pm mailing list