Re: perl to php translation tool?

From: Date: Mon, 22 Nov 2004 13:48:44 +0000
Subject: Re: perl to php translation tool?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202667@lists.php.net to get a copy of this message
Markus Mayer wrote:
I've searched for a tool that would translate, or at least mostly translate, perl scripts into php, unfortunately with no success.
It's simply impossible. By example, a Perl script handling file uploads cant be translated automatically : php4 handles file uploads _before_ the php script gets executed (choosing tmp filename, filling $_FILES etc). AFAIK PHP can't do everything Perl can (ex download progress), so automatic translations are not possible unless very simple/specific cases. Some translation problems are - very different OO models - different handling of references - and, as suggested by Raditha, in Perl, TIMTOWTDI -- There Is More Than One Way To Do It
Does anyone know of any tool that can handle this type of thing?
/dev/brain :-) Christophe

« previous php.general (#202667) next »