Jump to content

Help with PHP code conversion to PERL


Recommended Posts

Hi!

 

This is not quite a PHP problem, but a PERL one. Does anyone know how I could convert the following PHP code to PERL? (openning a file stream to an URL and reading its replied content?)

 

$URL = "http://www.exampleurl.com";

$handle = fopen ($URL, "r");

$key = str_replace(' ', '%20', fread($handle, 1000000));

 

I would like to implement it in PERL...

 

Thanks in advance,

 

/V

Link to comment
https://forums.phpfreaks.com/topic/51450-help-with-php-code-conversion-to-perl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.