Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Ian Malpass
Jonathan Rockway wrote: * On Thu, Feb 07 2008, Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PPI, does this exist already in the

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Jonathan Rockway
* On Thu, Feb 07 2008, Matisse Enzer wrote: > I want to utility program that I can point at a list of files and/r > directories and get back a list of all the unique modules/pragmas that > are imported via 'use' > > Before i write my own, using PPI, does this exist already in the CPAN? What's wron

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Elliot Shank
Elliot Shank wrote: Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PPI, does this exist already in the CPAN? One is already in

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Elliot Shank
Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PPI, does this exist already in the CPAN? One is already in progress. Right now

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Lester
On Feb 7, 2008, at 8:40 PM, Matisse Enzer wrote: Here's the command line that seems to work for me: ack -h '^use\s+(\S+);' --output='$1' | sort -u Yes, but that assumes that they'll be of the form use Foo::Bar; but what if you have use Foo::Bar 'baz'; or use Foo::Bar qw( baz quu

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Armstrong
On 8 Feb 2008, at 02:40, Matisse Enzer wrote: Here's the command line that seems to work for me: ack -h '^use\s+(\S+);' --output='$1' | sort -u Doesn't match use Some::Module qw( foo bar ); -- Andy Armstrong, Hexten

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
Here's the command line that seems to work for me: ack -h '^use\s+(\S+);' --output='$1' | sort -u --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Armstrong
On 8 Feb 2008, at 02:32, Andy Lester wrote: On Feb 7, 2008, at 8:28 PM, Andy Armstrong wrote: ack -h '^use\s+\w+' | perl -pe 's/^use\s+(\w+(?:::\w+)*).*/$1/' | sort -u Great minds think alike, except that you don't need to be doing that Perl stuff. The --output flag for ack is your friend

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
On Feb 7, 2008, at 9:31 PM, Andy Lester wrote: On Feb 7, 2008, at 8:22 PM, Matisse Enzer wrote: I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes. First, install ack, either installing App::Ack or downloading the standalone version from http:

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Armstrong
On 8 Feb 2008, at 02:31, Andy Lester wrote: On Feb 7, 2008, at 8:22 PM, Matisse Enzer wrote: I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes. First, install ack, either installing App::Ack or downloading the standalone version from http://pe

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Lester
On Feb 7, 2008, at 8:28 PM, Andy Armstrong wrote: ack -h '^use\s+\w+' | perl -pe 's/^use\s+(\w+(?:::\w+)*).*/$1/' | sort -u Great minds think alike, except that you don't need to be doing that Perl stuff. The --output flag for ack is your friend. -- Andy Lester => [EMAIL PROTECTED] =>

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Lester
On Feb 7, 2008, at 8:22 PM, Matisse Enzer wrote: I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes. First, install ack, either installing App::Ack or downloading the standalone version from http://petdance.com/ack/ Then: $ ack -h '^use\s+(\S+

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Armstrong
On 8 Feb 2008, at 02:22, Matisse Enzer wrote: I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes. ack -h '^use\s+\w+' | perl -pe 's/^use\s+(\w+(?:::\w+)*).*/$1/' | sort -u ? :) -- Andy Armstrong, Hexten

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
On Feb 7, 2008, at 9:18 PM, Andy Armstrong wrote: On 8 Feb 2008, at 02:14, Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PP

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Andy Armstrong
On 8 Feb 2008, at 02:14, Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PPI, does this exist already in the CPAN? In general

Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my own, using PPI, does this exist already in the CPAN? thanx! ---

about CPAN::Mini::Inject

2008-02-07 Thread Andrew Hampe
We have a project where we are setting up a mini cpan for the modules that we are using, and it would be useful if there was a simple flag that we could set that would have the cpan stop IF a build and test of a dependent module failed. Is there such a flag, and I am just missing it in the do

Re: Diagnostics

2008-02-07 Thread Philippe Bruhat (BooK)
On Thu, Feb 07, 2008 at 02:29:18AM -0800, Ovid wrote: > --- "Philippe Bruhat (BooK)" <[EMAIL PROTECTED]> wrote: > > > The biggest trouble I had was for diagnostics. I ended up considering > > that diagnostics output after a test result belong to the test result > > (as a comment to it), and that d

Re: Diagnostics

2008-02-07 Thread Andy Armstrong
On 7 Feb 2008, at 10:29, Ovid wrote: This is, in my opinion, the single most important thing that we need to resolve in Perl's testing world: moving people to TAP version 13 along with full diagnostics in TAP that software can actually read. +1 -- Andy Armstrong, Hexten

Diagnostics

2008-02-07 Thread Ovid
--- "Philippe Bruhat (BooK)" <[EMAIL PROTECTED]> wrote: > The biggest trouble I had was for diagnostics. I ended up considering > that diagnostics output after a test result belong to the test result > (as a comment to it), and that diagnostics appearing before the first > test result are "global"