David Cantrell wrote: > They can upload modules to sub-directories under their cgi-bin (or > similar) and use them, provided they just 'use lib qw(blah)' first. >
Lol, I am aware of this :) > OTOH, it's not too unreasonable to expect > that a hostingco that has installed MySQL and perl will have also > installed DBD::Mysql, and one that has installed perl on Windows will > normally have Win32::* intsalled and perhaps some ODBC modules. > More to the point I demand it! It's very frustrating when your client is with a host that advertises that they have Perl and MySQL, but don't have the DBI or DBD::mysql modules installed. Thankfully it's getting less and less common, but I still come across them now and again. To pick on a big one FastHosts have a habit of not having the Perl modules they advertise they have and unlike most the others hosts I've found they are impossible to work with, and refuse to sort things like that out. > It could only ever be a heuristic, of course, but does this sound like a > close enough approximation? > > A module (actually a distribution) is pure perl if: > it contains no .c, .h or .xs files; > and it doesn't depend on Inline::C > or: > it contains a /pureperl/i file > > I'd look filenames up in the MANIFEST files on search.cpan.org. The > extra fetch needed from seaerch.cpan and all the extra checks would make > it quite a bit slower, so this would have to be an option that you have > to turn on yourself. > > And of course if a module is available in the same distribution in both > C-ish and pure perl versions, I won't be able to tell from the test > results whether it'll actually work for you. > > This definitely sounds like a good feature to add. [scribble scribble] > there, added to the TODO list. Of course, it'll get done faster if you > can supply a patch :-) The CVS repository is here: > http://drhyde.cvs.sourceforge.net/drhyde/perlcpandeps/ > > That sounds good. I'm 3 weeks behind on my current project, but once it's out of the way I'll certainly look at supplying a patch. I've got some experience with LWP and some other ideas I could include. Thanks for pointing me to the repository. Lyle _______________________________________________ BristolBathPM mailing list [email protected] http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm
