develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH] [perl #18055] Clarify for bug resolution.

Thread Previous | Thread Next
From:
Casey West
Date:
April 23, 2003 10:34
Subject:
Re: [PATCH] [perl #18055] Clarify for bug resolution.
Message ID:
20030423173813.GW15574@geeknest.com
It was Wednesday, April 23, 2003 when Casey West took the soap box, saying:
: It was Wednesday, April 23, 2003 when Robin Barker took the soap box, saying:
: : Casey
: : 
: : As an alternative, replace the find command with perl:
: : 
: :     % perl -MFile::Find=find -Tlwe \
: : 	'find { wanted => sub { print if /\.pm\z/ }, no_chdir => 1 },
: : @INC'
: 
: One of the biggest complaints people have had with that is the output
: is so unix centric.  However, thanks to Ken Williams (who reminded me
: of File::Spec) and Jonathan Steinert (for win32 testing) I've got an
: almost portable shell solution.
: 
:     % perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \
:       'find { wanted => sub { print canonpath $_ if /\.pm\z/ },
:       no_chdir => 1 }, @INC'
: 
: With the caveat that under win32 the quotes need to be doubled.
: 
: I'd be happy with this solution.

Oh, and here's the patch.


  Casey West

-- 
Shooting yourself in the foot with Mac Finder
It's easy to shoot yourself in the foot -- just point and shoot.

--- perl-current.orig/pod/perlmodlib.PL Mon Apr 21 10:50:06 2003
+++ perl-current/pod/perlmodlib.PL      Wed Apr 23 13:33:25 2003
@@ -147,9 +147,12 @@
 
 To find out I<all> modules installed on your system, including
 those without documentation or outside the standard release,
-just do this:
+just use the following command (under the default win32 shell,
+the quotes should be doubled).
 
-    % find `perl -Te 'print "@INC"'` -name '*.pm' -print
+    % perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \
+      'find { wanted => sub { print canonpath $_ if /\.pm\z/ },
+      no_chdir => 1 }, @INC'
 
 (The -T is here to prevent '.' from being listed in @INC.)
 They should all have their own documentation installed and accessible

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About