diff options
Diffstat (limited to 't/lib/gol-basic.t')
-rwxr-xr-x | t/lib/gol-basic.t | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/t/lib/gol-basic.t b/t/lib/gol-basic.t index 4b25322336..c5d857d5b8 100755 --- a/t/lib/gol-basic.t +++ b/t/lib/gol-basic.t @@ -1,16 +1,18 @@ #!./perl -w BEGIN { - chdir 't' if -d 't'; - unshift @INC, '../lib'; + chdir('t') if -d 't'; + @INC = '../lib'; } -use Getopt::Long 2.17; +use Getopt::Long qw(:config no_ignore_case); +die("Getopt::Long version 2.24 required--this is only version ". + $Getopt::Long::VERSION) + unless $Getopt::Long::VERSION >= 2.24; print "1..9\n"; @ARGV = qw(-Foo -baR --foo bar); -Getopt::Long::Configure ("no_ignore_case"); undef $opt_baR; undef $opt_bar; print "ok 1\n" if GetOptions ("foo", "Foo=s"); |