Re: [PHP] PERL vs. PHP

2001-04-21 Thread Dean Hall

"Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  but since you replied, can i ask what influenced you most
  when developing PHP?

 Whenever I couldn't decide what sort of syntax to use I copied C

 -Rasmus

This makes me think that any similarities to Perl are merely an accident.
Perl was written so that programmers of C (and several other languages)
could easily learn Perl and write in a comfortable subset of Perl syntax.
I've seen a lot of Perl that looks like C and a lot that doesn't.

I had a friend remark how similar PHP is to Basic. I think PHP's
similarities to Perl end after the "$" symbol, associative arrays, and
object syntax (borrowed from C++?). As someone already mentioned, Perl is a
much more mature language.

Dean.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-21 Thread PHPBeginner.com

Funny!

You, Rasmus, must be getting it every week at least.

btw Jason, we had some very interesting discussions on how Rasmus has
started PHP, look the archives - you would find it very curious.


Maxim Maletsky




-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 21, 2001 3:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PERL vs. PHP


Ramus Lerdof,

Are you the Ramus that created PHP?

If so, just want to say -- THANKS! -- PHP is the coolest thing since Delphi
!!!

Really Love it!

Jason



"Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  PHP was started as a suite of perl programs... it is heavily
  influenced by perl.  if you understand PHP and are comfortable
  with it, you should not have any problems learning Perl.

 Not quite.  I prototyped the initial parser with a Perl program (pre
 version 1), but the "suite" as you call it was all written in C.

 -Rasmus


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Steve Lawson

No, you won't.

PHP is has very similar syntax to c/c++ and perl but the concepts are
extremely different.

SL.


- Original Message -
From: "Jason Caldwell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 3:10 PM
Subject: [PHP] PERL vs. PHP


 If I know PHP will I *basically* know PERL?  Looking at some PERL code...
it
 looks nearly identical.

 Thanks.
 Jason




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Butler, Shaun

maybe for basics but in general no way, I think going the other way, from 
Perl to PHP is a much easier transition.

- Shaun

On Friday 20 April 2001 17:10, Jason Caldwell wrote:
 If I know PHP will I *basically* know PERL?  Looking at some PERL code...
 it looks nearly identical.

 Thanks.
 Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-20 Thread ..s.c.o.t.t.. [gts]

PHP was started as a suite of perl programs... it is heavily
influenced by perl.  if you understand PHP and are comfortable
with it, you should not have any problems learning Perl.

there are some very important differences between the two
languages that you need to keep your eyes open for, 
things like variable scoping (perl vars are global by default)
and variable prefixes

@varname = array
$varname[1] = item in the array

%varname = hash (assoc. array)
$varname{'name'} = element of the hash.

PHP kind-of smoothes over the perl approach to variables
and makes *everything* $varname, $varname[1], $varname['name']


IMO, perl allows you greater control over a number of 
things that PHP doesn't address, but that's mainly becuase
perl is older and has had more time to  build up funcitonality
and also becuase perl's focus is larger than web-based projects
(so you can use perl to do some things that you probably cant
do in PHP, like create daemons and servers)

all in all, if you know and love PHP, you'll probably find a
friendly home in Perl.  :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-20 Thread ..s.c.o.t.t.. [gts]

i program in both PHP/Perl, and the concepts are
extremely similar... 

granted, there are some similarities to C++,
but by far, the largest contributor to PHP's
language design has been Perl.


 -Original Message-
 From: Steve Lawson [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] PERL vs. PHP
 
 No, you won't.
 
 PHP is has very similar syntax to c/c++ and perl but the concepts are
 extremely different.
 
 SL.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-20 Thread Rasmus Lerdorf

 PHP was started as a suite of perl programs... it is heavily
 influenced by perl.  if you understand PHP and are comfortable
 with it, you should not have any problems learning Perl.

Not quite.  I prototyped the initial parser with a Perl program (pre
version 1), but the "suite" as you call it was all written in C.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Alec Smith

Perl to PHP is proving to be no big deal for me. I've only just started
looking at PHP 3 days ago, and am already generating production code. PHP
to Perl would most likely be a harder move since you'd have to add quite a
few new concepts to your knowledgebase.

In general, I'd have to say that PHP is a far easier language to use
overall.


On Fri, 20 Apr 2001, Butler, Shaun wrote:

 maybe for basics but in general no way, I think going the other way, from
 Perl to PHP is a much easier transition.

 - Shaun

 On Friday 20 April 2001 17:10, Jason Caldwell wrote:
  If I know PHP will I *basically* know PERL?  Looking at some PERL code...
  it looks nearly identical.
 
  Thanks.
  Jason

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-20 Thread ..s.c.o.t.t.. [gts]

ahhh... sorry.
i thought the history of PHP was a bunch of perl scripts
that were used to keep track of website statistics or
somethign guess i was wrong.

but since you replied, can i ask what influenced you most
when developing PHP?  

personally, i see perl influence everywhere in PHP,
but maybe i'm just not familiar enough with C
to recognize a lot of C influence.

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Subject: RE: [PHP] PERL vs. PHP
 
 
  PHP was started as a suite of perl programs... it is heavily
  influenced by perl.  if you understand PHP and are comfortable
  with it, you should not have any problems learning Perl.
 
 Not quite.  I prototyped the initial parser with a Perl program (pre
 version 1), but the "suite" as you call it was all written in C.
 
 -Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PERL vs. PHP

2001-04-20 Thread Rasmus Lerdorf

 but since you replied, can i ask what influenced you most
 when developing PHP?

Whenever I couldn't decide what sort of syntax to use I copied C

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Plutarck

"Basically", yes. And I do mean "basically".

The languages have the same "basic" sort of syntax and you can make a perl
script look almost exactly like a PHP script and vice-versa.

However that means _only_ that it is easier to learn one after learning the
other.

The paradox is that Perl gurus write awful PHP code. PHP gurus write awful
Perl code.

If you are going to write something in a certain language, you _must_ write
it as a programmer of that language. PHP and Perl look a lot alike, but if
you try and write them the same you will never be good at either of them.

Wizard level code of either PHP or Perl really isn't even the least bit
similar. Good perl code stuffs a whole ton of activity into a very small
space. You can check if a string is empty, run regex on it to remove certain
data, then split it and stick it into a tailor-made associative array on
just a few lines.

Try and write PHP code like that and you might as well eat your keyboard.
PHP isn't "perl, just a little better". (people trying to write PHP like it
was Java perhaps worse, though. If they use a class to check a variable for
truth, they're probably a Java programmer ;)


Just remember: Square Peg, Square Hole.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Jason Caldwell"" [EMAIL PROTECTED] wrote in message
9bq8h0$n78$[EMAIL PROTECTED]">news:9bq8h0$n78$[EMAIL PROTECTED]...
 If I know PHP will I *basically* know PERL?  Looking at some PERL code...
it
 looks nearly identical.

 Thanks.
 Jason




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Jason Caldwell

Ramus Lerdof,

Are you the Ramus that created PHP?

If so, just want to say -- THANKS! -- PHP is the coolest thing since Delphi
!!!

Really Love it!

Jason



"Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  PHP was started as a suite of perl programs... it is heavily
  influenced by perl.  if you understand PHP and are comfortable
  with it, you should not have any problems learning Perl.

 Not quite.  I prototyped the initial parser with a Perl program (pre
 version 1), but the "suite" as you call it was all written in C.

 -Rasmus


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]