Well, it would be nice if it were simple. =/
However, to my knowledge, there is no way to just modify your open()s to work like this.
In order to get that file, you'll need to transfer it over the network through standard methods. The options that come immediately to mind are ftp or cvs (cvs would be my choice in this case). There are modules to help you with either one. Both cases would require you to get the file, modify it, and send back the new version.
Keep in mind with using ftp, you may very well need to implement locking of some sort to keep the files in sync.

But this is a quick-fix type solution. A brute method.
IMO, this doesn't seem to be a situation in which load balancing is ideal. Perhaps it should be considered that only one of these servers be used to host the data file.

In my experience, it has been more trouble than it's worth to keep mirrors of constantly changing data on seperate servers.
Well anyway, sorry if this isn't what you were looking to hear. </my two cents>

In reply to Re: opening a file across a network by count0
in thread opening a file across a network by perlboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.