in reply to open function -- text file PATH

In double quotes, backslashed are special. Use single quotes:
open fh, 'C:\windows\file.txt';

Note that using lowercase barewords for filehandles begs for troubles. It is safer to use lexical filehandles, 3-argument form of open, and also check the return value of open in case the opening did not succeed:

open my $FH, '<', 'C:\windows\file.txt' or die $!;

See open for details.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ