You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Diego V <ma...@hotmail.com> on 2001/09/07 08:42:24 UTC

embperl


Hi there,

Just wanted to ask to any embperl user, is there any real advantage
about using embperl instead of PHP ?


Thank you

Diego Ventrice

_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


Re: embperl

Posted by Perrin Harkins <pe...@elem.com>.
> Just wanted to ask to any embperl user, is there any real advantage
> about using embperl instead of PHP ?

If you want a high-level summary of Embperl features, you could take a look
at my article on perl.com:
http://www.perl.com/pub/a/2001/08/21/templating.html

- Perrin


Re: embperl

Posted by iain truskett <ic...@koschei.8m.com>.
* Jim Cox (jim@jimco-fwt.com) [07 Sep 2001 08:03]:

> This will sould like sour grapes,..... But!

> Since PHP module compiles,... and Mod_Perl will not on AIX with gcc
> compiler....

> I'm thinkin' PHP is getting better and better all the time.

It's all a case of "use what works" =)

There's something peculiar with one of my Apaches in that it refuses to
use DSOs. And I've got mod_perl happily compiled into it.

On my home site, the admin of the machine has PHP installed but not
mod_perl.

At work, I haven't been able to convince the sysadmin to install either.
And if I do, he's more likely to go for PHP since it's less likely to
require many configuration changes. mod_perl can attach modules to any
part of a request/response phase and thus can be configured somewhat
complexly.

PHP is just a content handler, right?

mod_perl is an everything handler: content, headers, logging, URI
translation, etc. etc. It's more powerful. As far as I know, there's
nothing PHP can do that mod_perl can't.

Well, apart from compile on AIX with gcc =)


cheers,
-- 
iain.                                          <http://eh.org/~koschei/>

Re: embperl

Posted by Jim Cox <ji...@jimco-fwt.com>.
Well,... Now that makes some sense. I'll try that.


Thanks.

Jens-Uwe Mager wrote:
> 
> On Mon, May 07, 2001 at 02:44:13AM -0500, Jim Cox wrote:
> >
> >
> > This will sould like sour grapes,..... But!
> >
> > Since PHP module compiles,... and Mod_Perl will not on AIX with
> > gcc compiler....
> 
> As far as I have heard mod_perl will compile using gcc, only you must
> first compile your perl with gcc. As mod_perl picks up the compiler
> settings from the perl installation you must first compile perl with the
> proper compiler. But IBM does ship perl compiled using their compiler,
> so if you are lazy and do not recompile perl you are hosed.

I'm not the lazy type,.... just did not realize that.  I'm not using
the IBM perl distribution and I thought it was compiled with gcc,... but
I will check that.

> 
> --
> Jens-Uwe Mager
> 
> HELIOS Software GmbH
> Steinriede 3
> 30827 Garbsen
> Germany
> 
> Phone:          +49 5131 709320
> FAX:            +49 5131 709325
> Internet:       jum@helios.de

-- 
Jim Cox (mailto:jim@jimco-fwt.com) 
(817) 315-8134           (888) 834-7656 Toll Free
(817) 315-8253 FAX
(817) 233-8567 Mobile

Re: embperl

Posted by Jens-Uwe Mager <ju...@helios.de>.
On Mon, May 07, 2001 at 02:44:13AM -0500, Jim Cox wrote:
> 
> 
> This will sould like sour grapes,..... But!
> 
> Since PHP module compiles,... and Mod_Perl will not on AIX with 
> gcc compiler....

As far as I have heard mod_perl will compile using gcc, only you must
first compile your perl with gcc. As mod_perl picks up the compiler
settings from the perl installation you must first compile perl with the
proper compiler. But IBM does ship perl compiled using their compiler,
so if you are lazy and do not recompile perl you are hosed.

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:		+49 5131 709320
FAX:		+49 5131 709325
Internet:	jum@helios.de

Re: embperl

Posted by Jim Cox <ji...@jimco-fwt.com>.

This will sould like sour grapes,..... But!

Since PHP module compiles,... and Mod_Perl will not on AIX with 
gcc compiler....

I'm thinkin' PHP is getting better and better all the time.

iain truskett wrote:
> 
> * Diego V (massakre72@hotmail.com) [07 Sep 2001 06:59]:
> 
> [...]
> > Just wanted to ask to any embperl user, is there any real advantage
> > about using embperl instead of PHP ?
> 
> You get the advantage of using Perl rather than PHP.
> 
> This includes the vast resources of CPAN.
> 
> Personally, I recommend Mason <http://www.masonhq.com/> over Embperl
> simply because I prefer the way it integrates into HTML.
> 
> Investigate both =)
> 
> I've done reasonably sized projects with both and find Mason cleaner
> (mostly in its handling of scope and the way it doesn't use all those [-
> [+ [# [$ [* etc. tags and instead just has <%, <%init and other wordy
> ones: easier to remember =). )
> 
> cheers,
> --
> iain.                                          <http://eh.org/~koschei/>
>     "The only disadvantage I see is that it would force everyone to get
>      Perl. Horrors. :-)" --Larry Wall in <88...@jpl-devvax.JPL.NASA.GOV>

-- 
Jim Cox (mailto:jim@jimco-fwt.com) 
(817) 315-8134           (888) 834-7656 Toll Free
(817) 315-8253 FAX
(817) 233-8567 Mobile

Re: embperl

Posted by iain truskett <ic...@koschei.8m.com>.
* Diego V (massakre72@hotmail.com) [07 Sep 2001 06:59]:

[...]
> Just wanted to ask to any embperl user, is there any real advantage
> about using embperl instead of PHP ?

You get the advantage of using Perl rather than PHP.

This includes the vast resources of CPAN.

Personally, I recommend Mason <http://www.masonhq.com/> over Embperl
simply because I prefer the way it integrates into HTML.

Investigate both =)

I've done reasonably sized projects with both and find Mason cleaner
(mostly in its handling of scope and the way it doesn't use all those [-
[+ [# [$ [* etc. tags and instead just has <%, <%init and other wordy
ones: easier to remember =). )


cheers,
-- 
iain.                                          <http://eh.org/~koschei/>
    "The only disadvantage I see is that it would force everyone to get
     Perl. Horrors. :-)" --Larry Wall in <88...@jpl-devvax.JPL.NASA.GOV>

Re: embperl

Posted by Ask Bjoern Hansen <as...@valueclick.com>.
On Fri, 7 Sep 2001, Diego V wrote:

> Just wanted to ask to any embperl user, is there any real advantage
> about using embperl instead of PHP ?

http://archive.develooper.com/advocacy@perl.org/msg01457.html
http://archive.develooper.com/advocacy@perl.org/msg01461.html


 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/         !try; do();
more than a billion impressions per week, http://valueclick.com


Re: embperl

Posted by iain truskett <ic...@eh.org>.
* Medi Montaseri (medi@CyberShell.com) [08 Sep 2001 22:58]:

> Another advantage of Perl is that you can use this language in other
> situations as well. Unlike PHP, or ColdFusion or other languages who
> need something to tow them.
[...]

Much as I hate to give PHP a pro rather than a con, I must point out
that PHP can be used independently from a web service. It can be happily
used as a general purpose scripting language.

Of course, you don't get CPAN...


cheers,
-- 
iain.                                          <http://eh.org/~koschei/>

Re: embperl

Posted by Medi Montaseri <me...@CyberShell.com>.
Another advantage of Perl is that you can use this language in other
situations as well. Unlike PHP, or ColdFusion or other languages
who need something to tow them...you know like an RV without a head,
Perl has actaully an engine and gearbox as well.

On Fri, 7 Sep 2001, Diego V wrote:

> 
> 
> Hi there,
> 
> Just wanted to ask to any embperl user, is there any real advantage
> about using embperl instead of PHP ?
> 
> 
> Thank you
> 
> Diego Ventrice
> 
> _________________________________________________________________
> Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
> 
> 

-- 
-------------------------------------------------------------------------
Medi Montaseri                               medi@CyberShell.com
Unix Distributed Systems Engineer            HTTP://www.CyberShell.com
CyberShell Engineering
-------------------------------------------------------------------------