Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Has anyone attempted to create a PHP to Perl converter?

by einhverfr (Friar)
on Nov 18, 2013 at 05:33 UTC ( #1063039=note: print w/replies, xml ) Need Help??


in reply to Re^2: Has anyone attempted to create a PHP to Perl converter?
in thread Has anyone attempted to create a PHP to Perl converter?

Don't use regexp's for the same reason that you shouldn't use them for parsing HTML.

Parse::RecDescent would be a better tool, I think. You might be able to handle the basic syntax that way but what about folks using PDO? It looks superficially like DBI, but... So I doubt you can do that much other than handling very simple cases.

  • Comment on Re^3: Has anyone attempted to create a PHP to Perl converter?

Replies are listed 'Best First'.
Re^4: Has anyone attempted to create a PHP to Perl converter?
by taint (Chaplain) on Nov 18, 2013 at 06:58 UTC
    Greetings, einhverfr.

    Really good points -- especially where PDO's concerned. I hadn't thought about that. :(
    But I'm not totally convinced, where HTML is concerned (yet) :)

    Thanks for the response, einhverfr..

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063039]
help
Chatterbox?
[roboticus]: Maybe use a squarified tree map tool (first google hit I got: https://windirstat .net/)
[Discipulus]: LanX TreeSize used to be useful.. but if is 9mb..;=)
[pryrt]: LanX, I like NirSoft SearchMyFiles for finding large / duplicate files...
[SuicideJunkie]: Windirstat is what we use here for nagging people who use up the transfer share.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-09-20 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?