#!/usr/bin/perl -tw
use lib qw(t/lib);
use Test::More tests => 1;
my $warnings = '';
{
local $SIG{__WARN__} = sub { $warnings .= join '', @_ };
open my $out, "echo $^X|";
}
like( $warnings, '/^Insecure/', '-t honored' );
#!/usr/bin/perl -tw
use lib qw(t/lib);
use Test::More tests => 1;
my $warnings = '';
{
local $SIG{__WARN__} = sub { $warnings .= join '', @_ };
open my $out, "echo $^X|";
}
like( $warnings, '/^Insecure/', '-t honored' );