Don't hardcode perl path but use env instead

Also replace the deprecated "-w" argument with "use warnings;", as
otherwise env would invoke a command called "perl -w".

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Clemens Fruhwirth <clemens@endorphin.org>
Closes #5552
This commit is contained in:
clefru 2017-01-14 00:57:34 +01:00 committed by Brian Behlendorf
parent 08f0510d87
commit 2dbf1bf829
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
# #
# CDDL HEADER START # CDDL HEADER START
# #
@ -51,6 +51,7 @@
# #
require 5.0; require 5.0;
use warnings;
use IO::File; use IO::File;
use Getopt::Std; use Getopt::Std;
use strict; use strict;