my $fileName = "fileLocn/$var1_$var2.txt";Change that to:
Scalar value constructorsmy $fileName = "fileLocn/${var1}_$var2.txt";
In reply to Re: Use scalars to define a filename
by toolic
in thread Use scalars to define a filename
by akrrs7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |