If it's txt file and it will display in a browser then you should use
the module LWP to retrieve the text.  OPEN is used to open local files
not web addresses.

Hth
Brian 

-----Original Message-----
From: Sheni R. Meledath [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 7:55 AM
To: [EMAIL PROTECTED]
Subject: OPEN command in Perl

Hi,

How can I open an external file using Perl? The file is residing on
another server. I have to call the file using http. Now the following is
not working.

$email_file = "http://www.mysite.com/data/emails";;
open (LIST,"<$email_file/address.txt");

Thanks in advance.


Regards
Sheni R Meledath
[EMAIL PROTECTED]  


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



***********************************************************************
This e-mail and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. The views, opinions, and information expressed in this message
represents those of the individual sender and do not reflect the views of
Ruesch International, Inc. Take notice that the employees and/or agents of
Ruesch International are not authorized to make corporate commitments or
representations via e-mail and no statement or representation made in this
e-mail is binding upon Ruesch International. Ruesch cannot guarantee the
integrity or the confidentiality of any incoming or outgoing e-mail
communication.
***********************************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to