use env for all .perl files in regression test directory

This commit is contained in:
Hieu Hoang 2015-08-26 11:15:10 +04:00
parent d349bf8a94
commit aafe0efa10
8 changed files with 15 additions and 7 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# $Id$
use warnings;
use strict;
my ($results, $truth) = @ARGV;

View File

@ -1,5 +1,6 @@
#!/usr/bin/env perl
# downloads the regression data
use warnings;
use strict;
use MosesRegressionTesting;

View File

@ -1,7 +1,8 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# $Id$
use warnings;
use strict;
my $script_dir; BEGIN { use Cwd qw/ abs_path /; use File::Basename; $script_dir = dirname(abs_path($0)); push @INC, $script_dir; }
use MosesRegressionTesting;

View File

@ -1,8 +1,9 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
#
# Detokenization tests.
#
use warnings;
use strict;
# This is here to suppress (false) warnings about OLDOUT and OLDERR being used only once. Maybe there is a less brutish way to suppress that, but I don't know it.
no warnings 'once';

View File

@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
use warnings;
use strict;
BEGIN {

View File

@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
use warnings;
use strict;
my $script_dir; BEGIN { use Cwd qw/ abs_path /; use File::Basename; $script_dir = dirname(abs_path($0)); push @INC, $script_dir; }
#use MertRegressionTesting;

View File

@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
use warnings;
use strict;
BEGIN {

View File

@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
use warnings;
use strict;
BEGIN {