path = $file_to_locate.'.csv';chomp $path;if (-e $path) { $filefound = 'file found'; }else { $filefound = 'file not found'; }
chomp $path;
if (-e $path)
{
$filefound = 'file found';
}
else
$filefound = 'file not found';