some text ()\xA1 file.txt #### (1)if ($line =~ /(.+)\s*\(\)\xA1\s*(.+\.txt)/) { (2) $file = $1; (3) $file =~ s/\s*$//; (4) print OUT "$file
\n" }