[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] loading CPAN modules



Xah Lee wrote:
>In particular, I'm having problem with Image::Size.

Thanks to David Turley and Chris Nador. The answer can indeed be found at MacPerl archive at

   http://www.binary.net/dturley/macperl/search.html

and at Chris/Vicki's book

   http://www.ptf.com/macperl/

The gist is either to comment out the __END__ line, or do a manual split. The latter I havn't had time to investigate, but the former is pretty easy and worked. In my case, when loading Image::Size, I still get a bunch warnings like:

	# Subroutine imgsize redefined.
	File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 279

I was able to supress them by commenting out the followng line

	*Image::Size::AUTOLOAD = \&AutoLoader::AUTOLOAD;

I do not know exactly why it works, perhaps someone can explain.

 Xah
 xah@best.com
 http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html
 Mountain View, CA, USA


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch