See perlopentut, perlsec, sprintf#!/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);
In reply to Re: Dynamically Create a file
by Anonymous Monk
in thread Dynamically Create a file
by gam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |