perlquestion
armenica
Hi!
<p>
Is there a simple way to open a handle to an URL and read the replied content? I would like to convert the following PHP code to PERL, but can't quite find a function which could do the same:
<p>
<code>
//Specify your URL
$URL = "http://www.exampleurl.com";
//Open a stream in READ mode
$handle = fopen ($URL, "r");
//Read the content of the URL and manipulate it.
$key = str_replace(' ', '%20',fread($handle, 1000000));
</code>
<p>
It's the openning of the URL-stream and how to read it I would like to know.
<p>
Thanks in advance,
<p>
/V
<p><small>Edit: [g0n] - code tags and formatting</small></p>