X-Git-Url: http://git.ieval.ro/?p=gruntmaster-data.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FApp%2FCommand.pm;fp=lib%2FGruntmaster%2FApp%2FCommand.pm;h=94695ac560cbac194f07e4c24edb12dd46fc4578;hp=b1be168dc43c829b5f666d5e70ecf6373b6a7280;hb=dcf7f640534d6ad6d0273ac5b8bb1e9892fcaa56;hpb=4726af4fc57a855969d6528da69f3e6a75a07e6d diff --git a/lib/Gruntmaster/App/Command.pm b/lib/Gruntmaster/App/Command.pm index b1be168..94695ac 100644 --- a/lib/Gruntmaster/App/Command.pm +++ b/lib/Gruntmaster/App/Command.pm @@ -3,6 +3,7 @@ package Gruntmaster::App::Command; use 5.014000; use strict; use warnings; +use re '/s'; our $VERSION = '5999.000_004'; @@ -13,9 +14,9 @@ sub description { my ($self) = @_; my ($file) = (ref $self) =~ s,::,/,gr; my $usage; - open my $fh, '>', \$usage; + open my $fh, '>', \$usage; ## no critic (RequireCheckedOpen) pod2usage(-input => $INC{"$file.pm"}, -output => $fh, -exitval => 'NOEXIT', -verbose => 99, -sections => [qw/SYNOPSIS DESCRIPTION/]); - close $fh; + close $fh; ## no critic (RequireCheckedClose) $usage =~ s/Usage:/Usage examples:/; 1 while chomp $usage; $usage