Perl God wanterd yet again.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
I'm working on a little prject for school and, having heard from you guys about the wonders of Perl, decided to investigate it a little more. Then some other guy came along, who I know from school, and told me that PHP is way better if you know nothing about either, because PHP is easier to learn and use ?

Does he have a point ? What's the global difference between PHP and Perl (in combination with CGI)?

Thanx.
 
[font size=1" color="#FF0000]LAST EDITED ON Feb-15-02 AT 03:01AM (GMT)[p]PHP is indeed faster, but to say that it's easier to create web pages in is a load of wash. In standard Perl, there is various outputs to just put in either raw HTML to whatever you want, and also a way to just set in a few tags and have it write it out on it's own.

Perl is also much easier to get into, as it's constructs are easy to understand and work with. Whereas with PHP, I've been trying to learn it for about 3 months and it's still a bit odd. I learned Perl quite easily in almost half that time. Plus, Perl is more commonly found on servers than PHP is, we're still waiting for PHP here so we can switch to vBulletin (e.g. speed). PHP can be a total bitch at times, which is why whenever V13 has a move or a change, it takes a good while to get the scripts working again - here at NMA, our hold-up was trying to get the nuances of the Perl setup here down right. For instance, this server requires the following line or it will compile the script with an error:

print "Content-type:text/html\n\n";

Dunno if the board will show it right, even vBulletin's "script quote" section never works as claimed.
 
[font size=1" color="#FF0000]LAST EDITED ON Feb-15-02 AT 03:47AM (GMT)[p]Hmm. So are you saying that when I found PHP much easier to learn than Perl, I was actually having a hard time, because Perl is harder? :-)

Just read a couple of tutorials on both Perl and PHP, Ceasar, and see for yourself which one seems easier to learn for you.

[a href=//www.aptyp.f2s.com/megaton/][img src=//www.aptyp.f2s.com/megaton/images/megaton_banner.gif" border=0 onMouseOver="this.src='//www.aptyp.f2s.com/megaton/images/megaton_banner_glow.gif'" onMouseOut="this.src='//www.aptyp.f2s.com/megaton/images/megaton_banner.gif][/a]​
 
Back
Top