mwhiting has asked for the wisdom of the Perl Monks concerning the following question:
Instead of the relative filepath, I tried this line:open(DATAFILE, '../libsearch/SAMPLE.TXT'); while (<DATAFILE>) { print $_; } close(DATAFILE);
Didn't work. How can I open a file over http to read it's successive text lines, as if it were local?open(DATAFILE, 'http://www.jaywil.com/libsearch/SAMPLE.TXT');
Thanks so much!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to open a data file via http
by stonecolddevin (Parson) on Feb 26, 2007 at 20:36 UTC | |
|
Re: how to open a data file via http
by EvanK (Chaplain) on Feb 26, 2007 at 20:57 UTC | |
|
Re: how to open a data file via http
by Anonymous Monk on Feb 26, 2007 at 22:16 UTC | |
|
Re: how to open a data file via http
by mreece (Friar) on Feb 27, 2007 at 03:19 UTC | |
|
Re: how to open a data file via http
by hangon (Deacon) on Feb 27, 2007 at 05:26 UTC | |
by ikegami (Patriarch) on Feb 27, 2007 at 06:53 UTC | |
by pKai (Priest) on Feb 27, 2007 at 15:26 UTC | |
by ikegami (Patriarch) on Feb 27, 2007 at 16:39 UTC | |
by pKai (Priest) on Feb 27, 2007 at 17:31 UTC |