in reply to write/read to remote machine

Not that it'll help much in your case, but if opendir or open fail, you should display the associated error message, e.g.:
open(my $fh,">drive1.txt) or die "Error opening file: $!";
In any case, did you read and do you understand what opendir does? I do not think it does what you think it does.

To help with your problem, can you ftp or scp files to the linux machine? putty runs on windows and has ssh/scp clients.

Replies are listed 'Best First'.
Re^2: write/read to remote machine
by hari9 (Sexton) on Jul 28, 2010 at 19:41 UTC

    opendir, It opens a a new folder under the given path ( the last part of the path being the new folder you want to create)

    I tried writing the same code on windows, and it worked.

    I use Putty to logon to the unix machine, but should ssh/scp code be included in the perl script?

    Thanks for the reply!
      opendir, It opens a a new folder under the given path ( the last part of the path being the new folder you want to create)
      No, did you read the documentation? Or the documentation for readdir that the first docs link to for a usage example?
      I use Putty to logon to the unix machine, but should ssh/scp code be included in the perl script?
      Yes, if you don't want to or are unable to set up samba on the linux machine. Does a plain file copy from the command line work? Is samba already set up?