Re: perl to php translation tool?
| From: | Markus Mayer | Date: | Mon, 22 Nov 2004 15:27:37 +0000 |
| Subject: | Re: perl to php translation tool? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202680@lists.php.net to get a copy of this message | ||
I was afraid of such answers. My intention was to get rid of a fewperl
scripts on our server that were written by external companies, and those
companies are pressing to continue to use perl for their cgi's. /dev/brain
would be nice, if I could get that node made at those companies.... but it
seems like I'm dealing with more like /dev/braindead Such is life...
Thanks for the info though!
regards
Markus
On Monday 22 November 2004 14:48, Christophe Chisogne wrote:
> 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