in reply to Is there a trick to read file from \\server?

No trick, you just assigning the wrong values to $original_file and $new_file.

To $original_file, you assign the string

\serv123\logs\log1.txt

To $new_file, you assign the string

C:Documents and SettingsSerdesktop ewfile.log

Use use strict; use warnings;!!!

The following string literals will produce the strings you want:

my $original_file = '\\\\serv123\\logs\\log1.txt'; my $new_file = "C:\\Documents and Settings\\user\\desktop\\newfile.log +";