Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2012-02-20 15:50:05 +0400
committerAlessandro Ranellucci <aar@cpan.org>2012-02-20 15:50:05 +0400
commit555c23069d7dcb5f89ef075f07471fa7fe8881aa (patch)
treedb3b4a798f9991c80513f58449627bc8d770be00 /utils
parentae35df716fa2fb9fba8b22a7cc0f702d8ef76bf2 (diff)
New --post-process option. Includes some cleaning of the STDOUT messages
Diffstat (limited to 'utils')
-rwxr-xr-xutils/post-processing/z-every-line.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/post-processing/z-every-line.pl b/utils/post-processing/z-every-line.pl
index 5f9d311b6..49d5f4502 100755
--- a/utils/post-processing/z-every-line.pl
+++ b/utils/post-processing/z-every-line.pl
@@ -1,11 +1,12 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -i
use strict;
+use warnings;
my $z = 0;
# read stdin and any/all files passed as parameters one line at a time
-for (<>) {
+while (<>) {
# if we find a Z word, save it
$z = $1 if /Z(\d+(\.\d+)?)/;