diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-18 20:02:12 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-18 20:02:12 +0000 |
commit | 869c441986d207695e1db5d08c1703d0bbc66257 (patch) | |
tree | 78d1df0c76663e280ee904b2f55eefd34b7b2086 /lib | |
parent | 5459498cf7ff8f9f094292347be22c6312edae62 (diff) | |
parent | c7c04614297eaf861353db8b10652f71378803e4 (diff) | |
download | perl-869c441986d207695e1db5d08c1703d0bbc66257.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4407
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Pod/Man.pm | 6 | ||||
-rw-r--r-- | lib/Pod/Parser.pm | 9 | ||||
-rw-r--r-- | lib/Pod/Select.pm | 2 | ||||
-rw-r--r-- | lib/Text/Tabs.pm | 6 |
4 files changed, 11 insertions, 12 deletions
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 diff --git a/lib/Text/Tabs.pm b/lib/Text/Tabs.pm index acd7afb7d6..c431019908 100644 --- a/lib/Text/Tabs.pm +++ b/lib/Text/Tabs.pm @@ -7,7 +7,7 @@ require Exporter; @EXPORT = qw(expand unexpand $tabstop); use vars qw($VERSION $tabstop $debug); -$VERSION = 96.121201; +$VERSION = 98.112801; use strict; @@ -18,7 +18,7 @@ BEGIN { sub expand { - my @l = @_; + my (@l) = @_; for $_ (@l) { 1 while s/(^|\n)([^\t\n]*)(\t+)/ $1. $2 . (" " x @@ -32,7 +32,7 @@ sub expand sub unexpand { - my @l = @_; + my (@l) = @_; my @e; my $x; my $line; |