my $filename = $file_dir . "/filename1.log." . $today_date; #### my $filename = "$file_dir/filename1.log.$today_date";