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

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on How do I read a file on the local network drive ?

Replies are listed 'Best First'.
Re: How do I read a file on the local network drive ?
by enoch (Chaplain) on Mar 06, 2001 at 19:15 UTC
    It depends on what environment you are working in. In Windows with the file as a share, you can
    open(READ,"\\\\ComputerName\\ShareName\\FileName"); while(<READ>) { #do stuff } close READ;
    Or, if it is a mapped Windows drive:
    # M: is a mapped network drive open(READ,"M:\\folder\filename"); while(<READ>) { #do stuff } close READ;
    Anyways, on UNIX, you could use secure copy:
    system("scp user@computer.domain.com:/var/logfile ~/my_logs"); open(READ,"~/my_logs/logfile"); while(<READ>) { #do stuff } close READ;
    If you give me more information (like what platform, what network), I can provide more detail.

    Jeremy