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.
|
|---|
| 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 |