File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ requires 'Clone' => '0.30';
2626requires ' File::Spec' => win32() ? ' 3.2701' : ' 0.84' ;
2727requires ' IO::String' => ' 1.07' ;
2828requires ' List::MoreUtils' => ' 0.16' ;
29- requires ' List::Util' => ' 1.20 ' ;
29+ requires ' List::Util' => ' 1.33 ' ;
3030requires ' Params::Util' => ' 1.00' ;
3131
3232# Modules needed for PPI::Cache
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Document-specific.
6565
6666use strict;
6767use Carp ();
68- use List::MoreUtils ();
68+ use List::Util 1.33 ();
6969use Params::Util qw{ _SCALAR0 _ARRAY0 _INSTANCE} ;
7070use Digest::MD5 ();
7171use PPI::Util ();
@@ -484,7 +484,7 @@ sub serialize {
484484 # This is a two part test.
485485 # First, are we on the last line of the
486486 # content part of the file
487- my $last_line = List::MoreUtils ::none {
487+ my $last_line = List::Util ::none {
488488 $tokens [$_ ] and $tokens [$_ ]-> {content } =~ / \n /
489489 } (($i + 1) .. $last_index );
490490 if ( ! defined $last_line ) {
@@ -494,7 +494,7 @@ sub serialize {
494494
495495 # Secondly, are their any more here-docs after us,
496496 # (with content or a terminator)
497- my $any_after = List::MoreUtils ::any {
497+ my $any_after = List::Util ::any {
498498 $tokens [$_ ]-> isa(' PPI::Token::HereDoc' )
499499 and (
500500 scalar (@{$tokens [$_ ]-> {_heredoc }})
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ process to be.
3636
3737use strict;
3838use Carp ();
39- use List::MoreUtils ();
39+ use List::Util 1.33 ();
4040use PPI::Util ' _Document' ;
4141use PPI::Document::Normalized ();
4242
@@ -86,7 +86,7 @@ sub register {
8686 }
8787
8888 # Has it already been added?
89- if ( List::MoreUtils ::any { $_ eq $function } ) {
89+ if ( List::Util ::any { $_ eq $function } ) {
9090 return 1;
9191 }
9292
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ in private methods.
8080# we don't have to go and load all of PPI.
8181use strict;
8282use Params::Util qw{ _INSTANCE _SCALAR0 _ARRAY0} ;
83- use List::MoreUtils ();
83+ use List::Util 1.33 ();
8484use PPI::Util ();
8585use PPI::Element ();
8686use PPI::Token ();
@@ -209,7 +209,7 @@ sub new {
209209 # once the tokenizer hits end of file, it examines the last token to
210210 # manually either remove the ' ' token, or chop it off the end of
211211 # a longer one in which the space would be valid.
212- if ( List::MoreUtils ::any { / ^__(?:DATA|END)__\s *$ / } @{$self -> {source }} ) {
212+ if ( List::Util ::any { / ^__(?:DATA|END)__\s *$ / } @{$self -> {source }} ) {
213213 $self -> {source_eof_chop } = ' ' ;
214214 } elsif ( ! defined $self -> {source }-> [0] ) {
215215 $self -> {source_eof_chop } = ' ' ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use File::Spec::Functions ':ALL';
77use Test::More;
88use Test::Object;
99use Params::Util qw{ _STRING _INSTANCE} ;
10- use List::MoreUtils ' any' ;
10+ use List::Util 1.33 ' any' ;
1111use PPI::Dumper;
1212
1313use vars qw{ $VERSION} ;
You can’t perform that action at this time.
0 commit comments