in reply to can't open file from another machine

The open command lets you access local files (or files made to look local by network mounts and so on). It doesn't connect to other machines for you. You'll have to fetch the file yourself, or set up some system so you can access over the network (then not use open()).

--
brian d foy <brian@stonehenge.com>

Replies are listed 'Best First'.
Re^2: can't open file from another machine
by ikegami (Patriarch) on Jun 29, 2005 at 18:35 UTC
    Not so. In a Windows environment, \\ip_address\share\dir\filename is a perfectly valid argument for open. (Tested.) It isn't a Perl feature, it's an OS feature. Unix has a similar feature: NFS.

      That's what I said: it's not open() and something else has to let you open the file like that. If the local or remote machines aren't set up for that, Perl isn't going to do it for you.

      --
      brian d foy <brian@stonehenge.com>