How to create a new file using a variable value in perl?
- by user295384
Eg: 
$variable = "10000";
for($i=0; $i<3;$i++)
{
   $variable++;
   $file = $variable."."."txt";
   open output,'>$file' or die "Can't open the output file!"; 
}
This doesn't work...Please suggest a new way. Thanks in advance :)