Etienne Marcotte [[EMAIL PROTECTED]] quoth: *>Well *> *>My computer here doesn't have perl on it (work computer), my laptop *>doesn't have internet. So I'm stuck. I'll try to install it from my home *>desktop then and look at the pm and save the .pm on a floppy. I never *>used CPAN yet... nor ppm thingy. I am running win2k, I hope it won't be *>a pain in the "455".
You can always buy a CD with CPAN on it or make one yourself. See the CPAN FAQ. *>In fact, my concern is that the Image::size module can read several *>types of files, and I only need to read for two types, so I'd like to *>strip out all the junk and keep the code minimal. Would this gain speed? *>Or it's unuseful to take parts of existant modules to keep only what we *>will really use? Installing modules that have been altered from their common 'distributed' format has one major drawback and that is if you leave or someone else mistakenly installs a newer version of the module over it then you lose and people could spend hours if not days tracking down and fixing the problem. You could rename the module but then you have to document this somewhere and it generally adds a layer of complexity that one should only invoke when absolutely necessary. Also, CPAN.pm can use the aforementioned CD or the internet for fetching files and, what's more, is that the 'look' command will download the module, uncompress it and drop you into a subshell where you can make changes to the module then continue with an 'install' command when you are done like cpan> i /Christmas/ Fetching with LWP: http://cpan.valueclick.com/modules/03modlist.data.gz Going to read /.cpan/sources/modules/03modlist.data.gz Distribution H/HF/HFB/Date-Christmas-1.02.tar.gz Module Date::Christmas (H/HF/HFB/Date-Christmas-1.02.tar.gz) cpan> look Date::Christmas Trying to open a subshell in the build directory... Fetching with LWP: http://cpan.valueclick.com/authors/id/H/HF/HFB/Date-Christmas-1.02.tar.gz CPAN: MD5 loaded ok Fetching with LWP: http://cpan.valueclick.com/authors/id/H/HF/HFB/CHECKSUMS Checksum for /.cpan/sources/authors/id/H/HF/HFB/Date-Christmas-1.02.tar.gz ok x Christmas, 0 bytes, 0 tape blocks x Christmas/Christmas.pm, 5772 bytes, 12 tape blocks x Christmas/Makefile.PL, 115 bytes, 1 tape blocks x Christmas/test.pl, 1222 bytes, 3 tape blocks x Christmas/Changes, 344 bytes, 1 tape blocks x Christmas/MANIFEST, 50 bytes, 1 tape blocks Working directory is /.cpan/build/Christmas foo@bar /.cpan/build/Christmas> Edit module here, exit the shell when you are done and carry on as normal. quite handy. e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]