Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.



On Tue, 29 Apr 2008 08:00:47 +0200, tenxian <hi.steven.tu@xxxxxxxxx> wrote:
Could you put up with the horrible PHP code?

No offcourse not, that's why we read this group.

For comparison, here's some Perl:
#!/usr/bin/perl -l
s--@{[(gE^Ge)=~/[^g^e]/g]}[g^e]x((!!+~~g^e^g^e)<<pop).!gE-ge,
s-[^ge^ge]-s,,,,s,@{[(g^';').(e^'?')]},(G^'/').(E^'|')^Ge,ge,
print,s,(?<=/[^g^e])[^g^e][^g^e],$&^(G^'/').(E^'|')^gE,ge-ge
--
Rik Wasmus
.