]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - bin/remove-continuation.pl
bin/remove-continuation.pl: minor cleanup
[config/dotfiles.git] / bin / remove-continuation.pl
index 8658df8033109d379fe73168beced34c8ba4bb21..df36d332a4d1fc9d05d848325f61db0c01baeb26 100755 (executable)
@@ -24,17 +24,17 @@ use warnings;
 
 
 my $continuation = 0;
-while (my $line = <>) {
+while (<>) {
     # Remove leading whitespace if the last line was a line continuation.
     if ($continuation) {
-        $line =~ s/^\s+//;
+        s/^\s+//;
     }
 
-    if ($line =~ /^(.+?)\\$/) {
+    if (/^(.+?)\\$/) {
         print $1;
         $continuation = 1;
     } else {
-        print $line;
+        print $_;
         $continuation = 0;
     }
 }