From 0f9e257e4771f8bebf7b5d955f1c558e51bb7602 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 14 Jul 2014 14:15:06 +0200 Subject: [PATCH] use strict, use autodie; --- float.pl | 4 ++++ gp2_to_bin.pl | 7 +++++-- raw4t_gp2_to_human.pl | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/float.pl b/float.pl index 234f1ca..0aadfd3 100644 --- a/float.pl +++ b/float.pl @@ -1,3 +1,7 @@ +#!/usr/bin/perl -w + +use strict; +use autodie; use feature 'say'; my $num = 43.724884; diff --git a/gp2_to_bin.pl b/gp2_to_bin.pl index efb9240..89d70c8 100755 --- a/gp2_to_bin.pl +++ b/gp2_to_bin.pl @@ -1,11 +1,14 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w # # by Matija Nalis GPLv3+, started 2014-06-21 # parse SLCLog.gp2 and create raw binary data (for passing to gpsd or similar) # -# Usage: ./gp2_to_bin.pl data/2/SLCLog.gp2 > slclog.bin +# Usage: ./gp2_to_bin.pl data/2/SLCLog.gp2 > SLCLog.bin # +use strict; +use autodie; + $|=1; while (<>) { diff --git a/raw4t_gp2_to_human.pl b/raw4t_gp2_to_human.pl index 6d02c84..d99cbb1 100755 --- a/raw4t_gp2_to_human.pl +++ b/raw4t_gp2_to_human.pl @@ -4,6 +4,7 @@ # # Usage: ./strace_to_gp2.pl data/strace4/strace.log.3491 | ./enc4t_gp2_to_raw4t_gp2.pl | ./raw4t_gp2_to_human.pl # + use strict; use autodie; use feature "switch";