]> git.donarmstrong.com Git - perltidy.git/commitdiff
minor fix for CORE::
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 31 Jul 2023 14:23:07 +0000 (07:23 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 31 Jul 2023 14:23:07 +0000 (07:23 -0700)
it is better to use 'type' instead of 'tok' even though they are the same here

lib/Perl/Tidy/Tokenizer.pm

index 997766a544ba46bfa7a85a4eda3a2b28233b32f6..7ddfca46356f3be38b029f08b98bbe44b5e9499a 100644 (file)
@@ -5187,7 +5187,7 @@ EOM
                 last if ( $in_quote || $i > $max_token_index );
             }
 
-            if ( $type ne 'b' && $tok ne 'CORE::' ) {
+            if ( $type ne 'b' && $type ne 'CORE::' ) {
 
                 # try to catch some common errors
                 if ( ( $type eq 'n' ) && ( $tok ne '0' ) ) {