linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Perl Or PhP?
@ 2002-12-12  4:37 vick Julius
  2002-12-12  5:17 ` Stephen Satchell
  2002-12-16 13:08 ` Tyler
  0 siblings, 2 replies; 3+ messages in thread
From: vick Julius @ 2002-12-12  4:37 UTC (permalink / raw)
  To: linux-admin




I heard a lot about PhP but I did not have the opportunity to play with it.
1) Is it better than Perl?
2) Are there tasks that you can do with PhP that cannot be done with perl?
3)Can someone, who knows perl, stick with perl without learning Php?

Thanks

Vick


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Perl Or PhP?
  2002-12-12  4:37 Perl Or PhP? vick Julius
@ 2002-12-12  5:17 ` Stephen Satchell
  2002-12-16 13:08 ` Tyler
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Satchell @ 2002-12-12  5:17 UTC (permalink / raw)
  To: vick Julius, linux-admin

At 04:37 AM 12/12/02 +0000, vick Julius wrote:
>I heard a lot about PhP but I did not have the opportunity to play with it.
>1) Is it better than Perl?

A religious question if I ever heard one.  I believe both packages have 
their uses, and so you need to evaluate how each tool meets the problem you 
need to solve.  My personal tendency is to prototype in PHP to get the user 
interface reasonably set, but use Perl, CGI.pm, and Pq.pm for the 
bet-the-company assignments.

Many of the things I do involve Postgresql, and I find the Perl method, as 
opposed to the PHP method, allows for a smaller RAM footprint during page 
building.

The integration of static and active page content is more intituitive in 
PHP than in Perl.  This is especially true for Web pages which have only a 
small amount of dynamic content:  you can use a standard HTML tool to build 
the static stuff to your liking, then add just the PHP you need for the 
active side.

>2) Are there tasks that you can do with PhP that cannot be done with perl?

I haven't found any.  On the other hand, I've found things that Perl can do 
that PHP can't, but the significance is minor.  The one thing I do use a 
lot in Perl that is just damn difficult in PHP is C "helper" code, 
particular output from Lex/Yacc.

>3)Can someone, who knows perl, stick with perl without learning Php?

If you want to, I would guess.  PHP isn't that hard, but it is a little 
different.  Again, it depends on how many tools you want in your toolbox to 
solve problems.

Stephen Satchell



-- 
The human mind treats a new idea the way the body treats a strange
protein:  it rejects it.  -- P. Medawar
This posting is for entertainment purposes only; it is not a legal opinion.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Perl Or PhP?
  2002-12-12  4:37 Perl Or PhP? vick Julius
  2002-12-12  5:17 ` Stephen Satchell
@ 2002-12-16 13:08 ` Tyler
  1 sibling, 0 replies; 3+ messages in thread
From: Tyler @ 2002-12-16 13:08 UTC (permalink / raw)
  To: linux-admin

On Thu, Dec 12, 2002 at 04:37:00AM +0000, vick Julius wrote:
> 
> I heard a lot about PhP but I did not have the opportunity to play with it.
> 1) Is it better than Perl?

Questions like this have been known to start wars.

> 2) Are there tasks that you can do with PhP that cannot be done with perl?

None that I know of.  I'm going to pretty confidently say that anything
that can be done in PHP can be done in Perl.  That being said, my
personal preference is to use PHP for web-based applications.  Best to
know both in order to choose based on preference.  If you know Perl (or
have pretty much any programming experience) you will pick up PHP
easily.

> 3)Can someone, who knows perl, stick with perl without learning Php?
> 

I would say sure, absolutely. BUT...why WOULDN'T you want to know as
many languages as possible?  I can't think of a single reason NOT to
learn PHP. 


-- 
tyler at zerodivide dot cx
AIM: zerodivide1101
Mobile SMS: tyler-mobile at zerodivide dot cx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-16 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12  4:37 Perl Or PhP? vick Julius
2002-12-12  5:17 ` Stephen Satchell
2002-12-16 13:08 ` Tyler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).