Re: ExtUtils::Installed vs pminst vs?

2009-04-06 Thread Paul LeoNerd Evans
On Thu, Apr 02, 2009 at 11:42:32AM +0100, Paul LeoNerd Evans wrote: On Tue, 31 Mar 2009 19:26:37 +0100 Matt Lawrence matt.lawre...@virgin.net wrote: Module::Util will do this for you: A surprisingly-useful looking module. I wonder why I haven't come across this one before... Is it

Re: ExtUtils::Installed vs pminst vs?

2009-04-06 Thread Chisel Wright
On Mon, Apr 06, 2009 at 09:29:29PM +0100, Paul LeoNerd Evans wrote: Any ideas what this is about? I don't want to depend on this, if the smoketesters can't install it... Presumably something to do with Matt's last reply? but I've just noticed is that the CPAN shell doesn't seem to be able

Re: ExtUtils::Installed vs pminst vs?

2009-04-06 Thread Matt Lawrence
Paul LeoNerd Evans wrote: On Thu, Apr 02, 2009 at 11:42:32AM +0100, Paul LeoNerd Evans wrote: On Tue, 31 Mar 2009 19:26:37 +0100 Matt Lawrence matt.lawre...@virgin.net wrote: Module::Util will do this for you: A surprisingly-useful looking module. I wonder why I haven't come

Re: ExtUtils::Installed vs pminst vs?

2009-04-02 Thread Paul LeoNerd Evans
On Tue, 31 Mar 2009 19:26:37 +0100 Matt Lawrence matt.lawre...@virgin.net wrote: Module::Util will do this for you: A surprisingly-useful looking module. I wonder why I haven't come across this one before... Is it widely used? I notice it doesn't have a debian package. Any gotchas we should

Re: ExtUtils::Installed vs pminst vs?

2009-04-02 Thread Matt Lawrence
Paul LeoNerd Evans wrote: On Tue, 31 Mar 2009 19:26:37 +0100 Matt Lawrence matt.lawre...@virgin.net wrote: Module::Util will do this for you: A surprisingly-useful looking module. I wonder why I haven't come across this one before... Is it widely used? I notice it doesn't have a

Re: ExtUtils::Installed vs pminst vs?

2009-03-31 Thread David Cantrell
On Sun, Mar 29, 2009 at 03:14:27PM +0100, Minty wrote: Holy wars aside, is there a cross platform friendly way to get a list of what modules I have available? File::Find::Rule-file()-name('*.pm')-in(@INC); then apply appropriate transmogrifications to the list to turn it into module names

Re: ExtUtils::Installed vs pminst vs?

2009-03-31 Thread Matt Lawrence
David Cantrell wrote: On Sun, Mar 29, 2009 at 03:14:27PM +0100, Minty wrote Holy wars aside, is there a cross platform friendly way to get a list of what modules I have available? File::Find::Rule-file()-name('*.pm')-in(@INC); then apply appropriate transmogrifications to the list to

ExtUtils::Installed vs pminst vs?

2009-03-29 Thread Minty
For a given #! line (with @INC optionally altered, primarily to add local/private libs) I want to find out what modules I have installed. http://search.cpan.org/dist/pmtools/pminst will do it, but doesn't seem very cross platform friendly. I've not yet tested it, but I can't see it working on

Re: ExtUtils::Installed vs pminst vs?

2009-03-29 Thread James Laver
On 29 Mar 2009, at 15:14, Minty wrote: Holy wars aside, is there a cross platform friendly way to get a list of what modules I have available? Perhaps you're looking on the wrong level. Something like this? perl -ne 'next if 1..9; $_ = (split /\s+/,$_)[0]; eval require $_; print $_\n if

Re: ExtUtils::Installed vs pminst vs?

2009-03-29 Thread Minty
On Sun, Mar 29, 2009 at 7:08 PM, James Laver james.la...@gmail.com wrote: perl -ne 'next if 1..9; $_ = (split /\s+/,$_)[0]; eval require $_; print $_\n if $@;' modules/02packages.details.txt Ideally I was looking for something that didn't involve using require to avoid side effects of modules