in reply to Has anyone attempted to create a PHP to Perl converter?
Have you tried
PHP::Include?
Here's the deepstructure.php:#!/usr/bin/perl -l use strict; use warnings; use PHP::Include ( DEBUG => 1 ); include_php_vars( '/path/to/deepstructure.php' ); my $file = '/path/to/deepstructure.php'; print $file;
<?php $structure = array( 'names' => array( 'a' => array( 'alberto', 'antonio'), 'b' => array( 'burro', 'brain')), 'ages' => array( 10, 20, 30, 40), ); $x = 42; ?>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Has anyone attempted to create a PHP to Perl converter?
by marto (Cardinal) on Nov 13, 2013 at 16:03 UTC |
In Section
Meditations