in reply to Dynamically Create a file

#!/usr/bin/perl -T -- use strict; use warnings; my $testCase = 'testing'; my $command = 'lin --help'; my $test = sprintf "/usr/anil/scripts/ActData/%s.txt", $testCase; open (STDERR, ">", $test ) or die "couldn't create $test : $!"; $t = system($command);
See perlopentut, perlsec, sprintf