$me = $0; # Editing $0 is unportable
$me =~ s,.*/,,;
die <<EOF;
-Usage: $me [-h] [-v] [-t] [-u] [-m] [-l] PageName|ModuleName|ProgramName
+Usage: $me [-h] [-v] [-t] [-u] [-m] [-l] [-F] PageName|ModuleName|ProgramName
$me -f PerlFunc
We suggest you use "perldoc perldoc" to get aquainted
-u Display unformatted pod text
-m Display modules file in its entirety
-l Display the modules file name
+ -F Arguments are file names, not modules
-v Verbosely describe what's going on
PageName|ModuleName...
unshift(@ARGV,shellwords($ENV{"PERLDOC"}));
-getopts("mhtluvf:") || usage;
+getopts("mhtluvFf:") || usage;
usage if $opt_h || $opt_h; # avoid -w warning
# We must look both in @INC for library modules and in PATH
# for executables, like h2xs or perldoc itself.
@searchdirs = @INC;
+ if ($opt_F) {
+ next unless -r;
+ push @found, $_ if $opt_m or containspod($_);
+ next;
+ }
unless ($opt_m) {
if ($Is_VMS) {
my($i,$trn);
Display the file name of the module found.
+=item B<-F> file names
+
+Consider arguments as file names, no search in directories should be performed.
+
=item B<-f> perlfunc
The B<-f> option followed by the name of a perl built in function will