PerlHP (20)

1 Name: !WAHa.06x36 2005-01-22 18:31 ID:T12nv1b8 (Replies) [Del]

Here's a thread to discuss PerlHP, if anyone feels like taking my little joke seriously.

The PerlHP homepage is here: http://wakaba.c3.cx/perlhp/

It is just a little bit spartan at the moment, but the source code is there, as is the documentation. It will no doubt be developed further at some later point.

The original announcement is here: http://4-ch.net/code/kareha.pl/1105183272/33-

If you use it for anything, please tell me! And if you have any suggestions for features, feel free to request them. Remember, though, that this is meant both to be a quick hack, and to be used for quick hacks. Furhter hacks of the code is also very welcome!

2 Name: Anonymous 2005-01-22 18:44 ID:Heaven (Replies) [Del]

Now do a PHPerl!

3 Name: !WAHa.06x36 2005-01-23 19:39 ID:amKMcmgf (Replies) [Del]

PerlHP v3.01 Gold Released

That's right, the most stable and mature version of PerlHP yet! There is now beautiful error handling, and more bugfixes!

Furthermore, PerlHP now has a real homepage!

http://wakaba.c3.cx/perlhp/

4 Name: Anonymous 2005-01-24 07:32 ID:Heaven (Replies) [Del]

This whole thing makes me ponder whether it would be possible to port all programming languages to each other. Are they all capable of emulating enough similiarity?

5 Name: !WAHa.06x36 2005-01-24 08:15 ID:FSaFQcCv (Replies) [Del]

Well, in theory, any Turing-complete language can emulate any other. This ignores constraints on memory, time and the ability to interface with the outside of the program, though.

6 Name: !WAHa.06x36 2005-01-24 08:25 ID:FSaFQcCv (Replies) [Del]

Incidentially, Perl source filters, which I used for this, allow you to do arbitary transformations of the source code before it is passed to the Perl compiler, which means that you can in theory implement any language transparently on top of Perl, if you just put enough work into it. There are some interesting examples, that are funnier by far than PerlHP, such as Lingua::Romana::Perligata, http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html, and Language::Pythonesque, which has never gotten a proper release so I have nowhere to link (it adds Python-style significant whitespace to Perl).

7 Name: !WAHa.06x36 2005-01-25 19:28 ID:g5M1oOGm (Replies) [Del]

PerlHP v5.0 Released

Now with support for Perl 5.6 through some cryptic and mysterious dark arts:

http://wakaba.c3.cx/perlhp/PerlHP.html#perl_5.6.*

8 Post deleted by user.

9 Name: !WAHa.06x36 2005-05-30 16:08 ID:kgtFKS19 [Del]

Now, I know a lot of you have been thinking, "I'd sure like to use that PerlHP, but I haven't seen any security updates for it! All good software has security updates!"

Well, fear no more, because PerlHP v5.0.1 is here! And it's a security update!

10 Name: Anonymous 2005-05-30 19:03 ID:sxD9SOG0 [Del]

I'll have to write my website in this!

11 Name: Akhasha 2005-07-04 22:29 ID:OpVrUdYS [Del]

Finally, something to bridge the grace of Perl with the goo of PHP. I'm used to HTML::Embperl which is kinda nifty, but has enough quirks that I'd prefer something simple like this.

12 Name: !WAHa.06x36 : 2006-05-11 15:54 ID:x32mGKFd [Del]

Thanks to some encouragement and help from one Michael Matthews, PerlHP SE v9.0 is now released!

The biggest, most exciting PerlHP update ever! The new features are too many to list here (because, lazy), so you will have to go read all about them on the PerlHP page!

http://wakaba.c3.cx/perlhp/

13 Name: Anonymous : 2007-05-18 01:39 ID:es3c6dy8 [Del]

kekeke

14 Name: Anonymous : 2007-05-18 05:58 ID:Heaven [Del]

since someone bumped this thread, i guess i'll post these here in case anyone finds them useful...
http://hotaru.thinkindifferent.net/PerlHP_Utils.diff
http://hotaru.thinkindifferent.net/PerlHP_Comments.diff

15 Name: Anonymous : 2007-11-05 14:34 ID:8REjuybK [Del]

BUMP.

Personally I would have preferred for those perl scripts to work in PHP files.

I am tired of seeing "perl only" files to software I want to download. I am a PHP programmer, not a perl programmer.

16 Name: Anonymous : 2009-01-15 11:37 ID:6q5gfzBv [Del]

what happened to PerlHP? I am quite curious to look at the project but sadly the page doesn't work, I'm a PHP (intermediate) and Perl (beginner) programmer who is interested in the project can anyone link me to the source? thanks

17 Name: Anonymous : 2009-01-15 22:04 ID:Heaven [Del]

>>16
http://waro.su/ uses <a href="http://hotaru.thinkindifferent.net/perlhp-mod.tar.bz2">a slightly modified version of perlhp</a>...
and there's <a href="http://web.archive.org/web/20071223223811/http://wakaba.c3.cx/perlhp/">the wayback machine</a>...

18 Post deleted by moderator.

19 Name: Chris : 2011-02-02 03:23 ID:VgM1+F4g [Del]

Hey!

I'd like to use PerlHP in a FCGI dispatcher script which basically looks like this:

use strict;
use warnings;
use lib "/my/perl/lib/path";
use CGI::Fast;
use Embed::Persistent;
{

my $p = Embed_Persistent->new();
while (new CGI::Fast) {
my $filename = $ENV{SCRIPT_FILENAME};
my $package = $p->valid_package_name($filename);
my $mtime;
if ($p->cached($filename, $package, \$mtime)) {
eval {$package->handler;};
}
else $p->eval_file($filename);
}

}

the script in SCRIPT_FILENAME does not need to have any hashbang in it and if I use PerlHP in it, the FastCGI dispatcher doesn't work, because of the BEGIN/END scriptlets PerlHP uses.
Now I've noticed the function perlhp in the package which should be useable in my scenario to simply evaluate a perlhp-file with nothing but "<? echo("Hello from PerlHP-FCGI"); ?>" in it, for example. But how to I actually use it?

Thanks in advance :)
Chris

20 Name: Anonymous : 2011-04-23 15:47 ID:Heaven [Del]

By the way I don't know if you're aware of this, but apparently there is also PLP (http://search.cpan.org/~shiar/PLP/lib/PLP.pm) which is pretty similar to PerlHP. Figured it was worth a mention.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:
Image: