vit has asked for the wisdom of the Perl Monks concerning the following question:
I made output file description safe:#!/usr/bin/perl -wT
and I run script likeif ($outfile !~ /^(\w+)\z/) {die "Disallowed characters in filename: ' +$outfile'";} else {open(OF, ">$outfile") or die "-------------- cannot open OF";}
What might be wrong?perl -wT ../perl_scripts/XXX.pl .......
and it starde workingelse {$outfile = $1; open(OF, ">$outfile")
Why?my @arr = `perl -wT $XXXfile $inp_file $outfile 'param'`;
|
|---|