I have a function like this:
open my $pipe, "-|", '/usr/bin/externalcmd | /usr/bin/awk \'{print $2" "$4}\''
|| die "can't fork command: $!";
while (<$pipe>) {
my ($if, $ip) = split;
my $file = "/some/file/$if";
open (FILE, ">$file") || die "can't open $file for $ip: $!";
# ...
close(FILE);
}
close ($pipe);
It fails on open
with the following error:
Insecure dependency in open while running with -T switch at line 1383, <$pipe> line 1.
How can I fix this?