Problems? Is your data what you think it is? | |
PerlMonks |
Re: Perl and PHPby tobyink (Canon) |
on Dec 10, 2012 at 22:32 UTC ( [id://1008175]=note: print w/replies, xml ) | Need Help?? |
An embedded Perl interpreter for PHP does exist but it's a pretty bizarro thing to do. Update: the following works here:
Interestingly when running print "$^X $]" in the embedded Perl, I get: /usr/bin/php 5.010001 (that version number happens to correspond to my operating system's pre-packaged version of Perl).
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|