Why does this halt my perl application package 'not registered for warnings' -
i working in house web gateway frame work in perl. , trying use image::magick::thumbnail create thumbnail image.
but if have line
my ($thumb, $x, $y) = image::magick::thumbnail::create($image, 50);
i following error.
package 'image::magick::thumbnail' not registered warnings
i have tracked down line 313 of warnings.pm
croaker("package '$category' not registered warnings")
but i'm not sure why halts program ideas?
use warnings::register;
creates warnings category same name current package.
image::magick::thumbnail checks if warnings of category image::magick::thumbnail
enabled, doesn't create such category using use warnings::register;
.
the line there in code, it's commented out?! edit module uncomment line solve problem. including following in script should trick:
{ package image::magick::thumbnail; use warnings::register; }
Comments
Post a Comment