X-Git-Url: http://git.ieval.ro/?p=gruntmaster-data.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FApp%2FCommand.pm;h=23396c68fe4c58a819f61cc1fcdc5a5a6a530465;hp=b1be168dc43c829b5f666d5e70ecf6373b6a7280;hb=e1b9f3ddadeb424826cacd6319cd065d9b008e95;hpb=63afa40a4691cd73c543ff4f952beceb95db8841 diff --git a/lib/Gruntmaster/App/Command.pm b/lib/Gruntmaster/App/Command.pm index b1be168..23396c6 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 @@ -51,7 +52,7 @@ Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2015 by Marius Gavrilescu +Copyright (C) 2014-2015 by Marius Gavrilescu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.1 or,