if ( $outfile =~ m{\A(\w+)\z} ) { $outfile = $1; open my $outFH, q{>}, $outfile or dir qq{open: $outfile: $!\n}; } else { die qq{Disallowed characters in filename\n}; }
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: Insecure dependency in open while running with -T switch
by johngg
in thread Insecure dependency in open while running with -T switch
by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |