lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers.pm in javonet-ruby-sdk-2.4.4 vs lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers.pm in javonet-ruby-sdk-2.4.5

- old
+ new

@@ -1,15 +1,14 @@ package ExtUtils::Helpers; -$ExtUtils::Helpers::VERSION = '0.026'; +$ExtUtils::Helpers::VERSION = '0.027'; use strict; use warnings FATAL => 'all'; use Exporter 5.57 'import'; use Config; use File::Basename qw/basename/; use File::Spec::Functions qw/splitpath canonpath abs2rel splitdir/; -use Text::ParseWords 3.24 (); our @EXPORT_OK = qw/make_executable split_like_shell man1_pagename man3_pagename detildefy/; BEGIN { my %impl_for = ( MSWin32 => 'Windows', VMS => 'VMS'); @@ -17,20 +16,10 @@ my $impl = $impl_for{$^O} || 'Unix'; require "ExtUtils/Helpers/$impl.pm"; "ExtUtils::Helpers::$impl"->import(); } -sub split_like_shell { - my ($string) = @_; - - return if not defined $string; - $string =~ s/^\s+|\s+$//g; - return if not length $string; - - return Text::ParseWords::shellwords($string); -} - sub man1_pagename { my $filename = shift; return basename($filename).".$Config{man1ext}"; } @@ -65,10 +54,10 @@ ExtUtils::Helpers - Various portability utilities for module builders =head1 VERSION -version 0.026 +version 0.027 =head1 SYNOPSIS use ExtUtils::Helpers qw/make_executable split_like_shell/;