summaryrefslogtreecommitdiff
path: root/lib/Pod/Usage.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-05 07:29:43 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-05 07:29:43 +0000
commite9fdc7d2ad34e80787f760dcc04e2f23a1599092 (patch)
treede10b8959034f0ef55fa27897fcf6ede1fb6d2e4 /lib/Pod/Usage.pm
parent8d74ce1c73a4b1bd298f3cad65bbf1a36ccf0e4e (diff)
downloadperl-e9fdc7d2ad34e80787f760dcc04e2f23a1599092.tar.gz
upgrade Pod::Parser to v1.081 from CPAN
p4raw-id: //depot/perl@3304
Diffstat (limited to 'lib/Pod/Usage.pm')
-rw-r--r--lib/Pod/Usage.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Pod/Usage.pm b/lib/Pod/Usage.pm
index 855dbf0624..9cb71e0afa 100644
--- a/lib/Pod/Usage.pm
+++ b/lib/Pod/Usage.pm
@@ -13,7 +13,7 @@
package Pod::Usage;
use vars qw($VERSION);
-$VERSION = 1.08; ## Current version of this package
+$VERSION = 1.081; ## Current version of this package
require 5.004; ## requires this Perl version or later
=head1 NAME
@@ -389,7 +389,7 @@ sub pod2usage {
## User passed a ref to a hash
%opts = %{$_} if (ref($_) eq 'HASH');
}
- elsif (/^[-+]?\d+$/o) {
+ elsif (/^[-+]?\d+$/) {
## User passed in the exit value to use
$opts{"-exitval"} = $_;
}
@@ -488,13 +488,13 @@ sub preprocess_paragraph {
local $_ = shift;
my $line = shift;
## See if this is a heading and we arent printing the entire manpage.
- if (($self->{USAGE_OPTIONS}->{-verbose} < 2) && /^=head/o) {
+ if (($self->{USAGE_OPTIONS}->{-verbose} < 2) && /^=head/) {
## Change the title of the SYNOPSIS section to USAGE
- s/^=head1\s+SYNOPSIS\s*$/=head1 USAGE/o;
+ s/^=head1\s+SYNOPSIS\s*$/=head1 USAGE/;
## Try to do some lowercasing instead of all-caps in headings
s{([A-Z])([A-Z]+)}{((length($2) > 2) ? $1 : lc($1)) . lc($2)}ge;
## Use a colon to end all headings
- s/\s*$/:/o unless (/:\s*$/o);
+ s/\s*$/:/ unless (/:\s*$/);
$_ .= "\n";
}
return $self->SUPER::preprocess_paragraph($_);