premj has asked for the wisdom of the Perl Monks concerning the following question:

hello , how do i access a remote file within the same network from my host using perl ? what is the module required for that ? i am working on Redhat 7. Thanx in advance. -- prem j khanna.

Replies are listed 'Best First'.
(ichimunki) Re: How to access a remote file ??
by ichimunki (Priest) on Jun 27, 2001 at 19:26 UTC
    You haven't told us much about your network. Like how you access these files outside of Perl.

    If this is all a local, behind-the-firewall network, you should look at NFS. Then your filesystem can be distributed over several machines, but appear to be a single filesystem on the working machine.

    If that's not an option, your best bet (for simplicity) is to set up a web server on the remote machine and access files in Perl using LWP.
Re: How to access a remote file ??
by olly (Scribe) on Jun 27, 2001 at 19:00 UTC
    That partly is decided by what the host is running and how it is offering the file. What protocol us used to offer the file? http, ftp maybe samba share etc if you know that then search cpan for a module that provides you an interface to the protocol like net::ftp

    Imagination is more important then knowledge -Einstein-