Paul Kraus wrote:

> Is perl used to compliment PHP

Sure:
#!perl -w

use strict;

print "PHP is a handy-dandy little language for embeding script content in web 
pages\n";   #    ; :-P

> or is perl better to use by itself
> instead of php? How does one relate to the other. I am coming from a
> asp.NET vp.NET .asp vb background and am trying to get away form M$. So
> I am looking at apache php and perl trying to figure out how all the
> pieces fit together.
>
> To show you my ignorance I thought php and apache where the same thing
> :)
>
> Paul

Hi Paul,

I think the functionalities overlap.  There is probably no reason that you could not 
use both on the same project, but I wouldn't recommend trying to get them to talk to 
each other within any givenprocess.  I'm sure there are interfaces for such purpose, 
but why complicate things?

Since you are a system adminstrator, you would probably be better off using Perl as 
your base language.  It has been around a lot longer, and addresses a much wider range 
of functionalities in its libraries.  On the other hand, there my be particular web 
pages that PHP would be well-suited for,if you want to use embedded code.  You could 
call such a PHP script from a script generated by Perl, and a PHP page may well use a 
Perl script for processing some of its forms.

Feel free to use both.  The syntax of PHP has been closely modeled after that of Perl 
to make transitions between easier.  As a matter of fact, I learned an incredible 
amount about Perl syntax from reading the PHP help reference.

Play around with both.  It never hurts to have one more tool in your kit.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to