diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-10-23 00:46:22 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-10-23 00:46:22 +0000 |
commit | 5102b790fbd2a20471bf6f85d8337fd8b34f8dff (patch) | |
tree | ca36addce781c2cb49162e577c0878da7d96e406 /lib | |
parent | e631c953b3966314f0191272fa1ccb1a3d8fd885 (diff) | |
parent | 6f9bb7fd34a6047f919bd09bd87e990f064e148c (diff) | |
download | perl-5102b790fbd2a20471bf6f85d8337fd8b34f8dff.tar.gz |
Resolve mainline before possible hacking operertunity this weekend
p4raw-id: //depot/utfperl@4424
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CPAN/FirstTime.pm | 3 | ||||
-rw-r--r-- | lib/Pod/Man.pm | 6 | ||||
-rw-r--r-- | lib/Pod/Parser.pm | 9 | ||||
-rw-r--r-- | lib/Pod/Select.pm | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 731d3ff2e4..289984956c 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -78,7 +78,8 @@ dialog anytime later by typing 'o conf init' at the cpan prompt.) } else { $fastread = 1; $CPAN::Config->{urllist} ||= []; - *prompt = sub { + # prototype should match that of &MakeMaker::prompt + *prompt = sub ($;$) { my($q,$a) = @_; my($ret) = defined $a ? $a : ""; printf qq{%s [%s]\n\n}, $q, $ret; diff --git a/lib/Pod/Man.pm b/lib/Pod/Man.pm index 0ed16b627c..87de42efb3 100644 --- a/lib/Pod/Man.pm +++ b/lib/Pod/Man.pm @@ -992,7 +992,7 @@ Pod::Man is a module to convert documentation in the POD format (the preferred language for documenting Perl) into *roff input using the man macro set. The resulting *roff code is suitable for display on a terminal using nroff(1), normally via man(1), or printing using troff(1). It is -conventionally invoked using the driver script B<pod2roff>, but it can also +conventionally invoked using the driver script B<pod2man>, but it can also be used directly. As a derived class from Pod::Parser, Pod::Man supports the same methods and @@ -1172,7 +1172,7 @@ B<pod2man> in Perl core. =head1 SEE ALSO -L<Pod::Parser|Pod::Parser>, perlpod(1), pod2roff(1), nroff(1), troff(1), +L<Pod::Parser|Pod::Parser>, perlpod(1), pod2man(1), nroff(1), troff(1), man(1), man(7) Ossanna, Joseph F., and Brian W. Kernighan. "Troff User's Manual," @@ -1181,7 +1181,7 @@ the best documentation of standard nroff(1) and troff(1). At the time of this writing, it's available at http://www.cs.bell-labs.com/cm/cs/cstr.html. The man page documenting the man macro set may be man(5) instead of man(7) -on your system. Also, please see pod2roff(1) for extensive documentation on +on your system. Also, please see pod2man(1) for extensive documentation on writing manual pages if you've not done it before and aren't familiar with the conventions. diff --git a/lib/Pod/Parser.pm b/lib/Pod/Parser.pm index ab6787d10e..8ef5a59f62 100644 --- a/lib/Pod/Parser.pm +++ b/lib/Pod/Parser.pm @@ -71,7 +71,7 @@ Pod::Parser - base class for creating POD filters and translators =head1 REQUIRES -perl5.004, Pod::InputObjects, Exporter, FileHandle, Carp +perl5.004, Pod::InputObjects, Exporter, Carp =head1 EXPORTS @@ -195,7 +195,6 @@ use strict; #use diagnostics; use Pod::InputObjects; use Carp; -use FileHandle; use Exporter; @ISA = qw(Exporter); @@ -1098,7 +1097,7 @@ sub parse_from_file { my $self = shift; my %opts = (ref $_[0] eq 'HASH') ? %{ shift() } : (); my ($infile, $outfile) = @_; - my ($in_fh, $out_fh) = (undef, undef); + my ($in_fh, $out_fh); my ($close_input, $close_output) = (0, 0); local *myData = $self; local $_; @@ -1119,7 +1118,7 @@ sub parse_from_file { else { ## We have a filename, open it for reading $myData{_INFILE} = $infile; - $in_fh = FileHandle->new("< $infile") or + open($in_fh, "< $infile") or croak "Can't open $infile for reading: $!\n"; $close_input = 1; } @@ -1155,7 +1154,7 @@ sub parse_from_file { else { ## We have a filename, open it for writing $myData{_OUTFILE} = $outfile; - $out_fh = FileHandle->new("> $outfile") or + open($out_fh, "> $outfile") or croak "Can't open $outfile for writing: $!\n"; $close_output = 1; } diff --git a/lib/Pod/Select.pm b/lib/Pod/Select.pm index b933cc2cdf..e634533522 100644 --- a/lib/Pod/Select.pm +++ b/lib/Pod/Select.pm @@ -62,7 +62,7 @@ or =head1 REQUIRES -perl5.004, Pod::Parser, Exporter, FileHandle, Carp +perl5.004, Pod::Parser, Exporter, Carp =head1 EXPORTS |