]> git.donarmstrong.com Git - perltidy.git/commitdiff
simplify
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 19 Oct 2024 00:13:03 +0000 (17:13 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 19 Oct 2024 00:13:03 +0000 (17:13 -0700)
lib/Perl/Tidy/Tokenizer.pm

index 54bf80d0e12f3dc03cdd5af963b323e327569f11..d4569f852947d3bf14f1a654c60f830b9bb6502c 100644 (file)
@@ -7830,8 +7830,7 @@ sub guess_if_here_doc {
 
     while ( defined( $line = $self->peek_ahead( $k++ ) ) ) {
         chomp $line;
-
-        if ( $line =~ /^$next_token$/ ) {
+        if ( $line eq $next_token ) {
             $msg .= " -- found target $next_token ahead $k lines\n";
             $here_doc_expected = 1;    # got it
             last;