RE: [PHP] what is difference between php and perl
PHP is more of a binding language that takes advantage of many different coding practices and puts them together. PHP is not jealous and does not separate or shun itself from other languages and borrows many of the ideas, schemes, similar libraries, etc. from these other languages. And yet, it is completely unique in its own way. Its easy-to-learn, low-cost and cross-platform identity has made it very popular in recent years. Perl is a great but is more of a mature language that has been around for the longest time and it doesn't have the same flexibility as PHP does on the web. You will find that PHP will far out-pace Perl coding, saving you both time and money. PHP works concurrently with free solution components such as Linux OS, Apache Web Server, MySQL Database and others (LAMP - Linux-Apache-MySQL-PHP). These components all work together beautifully, yielding fast and stable applications. Invest some time into it and see what we mean. -Original Message- From: Syed Ghouse [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:06 AM To: php mailinglists Subject: [PHP] what is difference between php and perl Hi all will anybody tell me the difference between perl and php Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] what is difference between php and perl
End of the commercial break, we're going back to the news headlines But hey, what to expect on a PHP list, right? Well, at least a story that makes sense. This is crap, so to speak. Syed, I suggest you should search on Google (for example, search for PHP vs Perl on groups) and see what people are talking about, and please try to find objectivity. What is said here is mostly wrong, and without starting a flame war again (Lost of megs and time are already used for this on the Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). Keep the following in mind when you do your search: - Each language has its purposes, and so each languages has its strengths and weaknesses - Be cautious with benchmarking, lots of benchmarks are comparing apples and eggs (compare PHP performance to plain Perl, instead of mod_perl for example) - Statistics of what is being installed does not say about if it's really used. - Drawbacks for someone can be nice features for someone else, and vice versa. Please find out for yourself, and don't draw any conclusions based on the answer below. You should check them both, at least to know which language fits your purpose, and may be other things come into play in your situation also, knowledge around, time you got (perl may take a bit more time to learn), what to do with it in the future and so on and so forth. Jurgen --- When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [A. Einstein, 1938] http://jurgenstroo.com This one time, at band camp, [EMAIL PROTECTED] said: PHP is more of a binding language that takes advantage of many different coding practices and puts them together. PHP is not jealous and does not separate or shun itself from other languages and borrows many of the ideas, schemes, similar libraries, etc. from these other languages. And yet, it is completely unique in its own way. Its easy-to-learn, low-cost and cross-platform identity has made it very popular in recent years. Perl is a great but is more of a mature language that has been around for the longest time and it doesn't have the same flexibility as PHP does on the web. You will find that PHP will far out-pace Perl coding, saving you both time and money. PHP works concurrently with free solution components such as Linux OS, Apache Web Server, MySQL Database and others (LAMP - Linux-Apache-MySQL-PHP). These components all work together beautifully, yielding fast and stable applications. Invest some time into it and see what we mean. -Original Message- From: Syed Ghouse [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:06 AM To: php mailinglists Subject: [PHP] what is difference between php and perl Hi all will anybody tell me the difference between perl and php Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
On Thu, 22 Jul 2004 13:31:20 +0200 (CEST), Jurgen Stroo [EMAIL PROTECTED] wrote: End of the commercial break, we're going back to the news headlines But hey, what to expect on a PHP list, right? Well, at least a story that makes sense. This is crap, so to speak. Syed, I suggest you should search on Google (for example, search for PHP vs Perl on groups) and see what people are talking about, and please try to find objectivity. What is said here is mostly wrong, and without starting a flame war again (Lost of megs and time are already used for this on the Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). I don't know why you say Perl is not matureI suppose it depends on what you call mature. Perl has been around forever and it works as advertised. It also has lots of support libraries. BlechI don't see it as a very good OO implementation. Just functions are kuldgy. It feels very bolted-on to the core language to me. Keep the following in mind when you do your search: - Each language has its purposes, and so each languages has its strengths and weaknesses - Be cautious with benchmarking, lots of benchmarks are comparing apples and eggs (compare PHP performance to plain Perl, instead of mod_perl for example) - Statistics of what is being installed does not say about if it's really used. - Drawbacks for someone can be nice features for someone else, and vice versa. Please find out for yourself, and don't draw any conclusions based on the answer below. You should check them both, at least to know which language fits your purpose, and may be other things come into play in your situation also, knowledge around, time you got (perl may take a bit more time to learn), what to do with it in the future and so on and so forth. Jurgen --- When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [A. Einstein, 1938] http://jurgenstroo.com This one time, at band camp, [EMAIL PROTECTED] said: PHP is more of a binding language that takes advantage of many different coding practices and puts them together. PHP is not jealous and does not separate or shun itself from other languages and borrows many of the ideas, schemes, similar libraries, etc. from these other languages. And yet, it is completely unique in its own way. Its easy-to-learn, low-cost and cross-platform identity has made it very popular in recent years. Perl is a great but is more of a mature language that has been around for the longest time and it doesn't have the same flexibility as PHP does on the web. You will find that PHP will far out-pace Perl coding, saving you both time and money. PHP works concurrently with free solution components such as Linux OS, Apache Web Server, MySQL Database and others (LAMP - Linux-Apache-MySQL-PHP). These components all work together beautifully, yielding fast and stable applications. Invest some time into it and see what we mean. -Original Message- From: Syed Ghouse [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:06 AM To: php mailinglists Subject: [PHP] what is difference between php and perl Hi all will anybody tell me the difference between perl and php Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40ffa442131291382852559! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
Youll find knowing both languages will be handy in development. Im not a huge fan of having to program in perl, however, at times, its far easier to use perl than any other language. An example of that, would be to create a small server client program that possibly parses or extrapolates data from a stream or file.. Perl is extremely strong in this area. When scripting serverside programs for the web, i use php over perl 100% of the times. There is vast differences between the two, this doesnt make one better than the other in all circumstances, quite the opposite. Jason On Thu, 22 Jul 2004 09:51:00 -0700, Justin Patrin [EMAIL PROTECTED] wrote: On Thu, 22 Jul 2004 13:31:20 +0200 (CEST), Jurgen Stroo [EMAIL PROTECTED] wrote: End of the commercial break, we're going back to the news headlines But hey, what to expect on a PHP list, right? Well, at least a story that makes sense. This is crap, so to speak. Syed, I suggest you should search on Google (for example, search for PHP vs Perl on groups) and see what people are talking about, and please try to find objectivity. What is said here is mostly wrong, and without starting a flame war again (Lost of megs and time are already used for this on the Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). I don't know why you say Perl is not matureI suppose it depends on what you call mature. Perl has been around forever and it works as advertised. It also has lots of support libraries. BlechI don't see it as a very good OO implementation. Just functions are kuldgy. It feels very bolted-on to the core language to me. Keep the following in mind when you do your search: - Each language has its purposes, and so each languages has its strengths and weaknesses - Be cautious with benchmarking, lots of benchmarks are comparing apples and eggs (compare PHP performance to plain Perl, instead of mod_perl for example) - Statistics of what is being installed does not say about if it's really used. - Drawbacks for someone can be nice features for someone else, and vice versa. Please find out for yourself, and don't draw any conclusions based on the answer below. You should check them both, at least to know which language fits your purpose, and may be other things come into play in your situation also, knowledge around, time you got (perl may take a bit more time to learn), what to do with it in the future and so on and so forth. Jurgen --- When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [A. Einstein, 1938] http://jurgenstroo.com This one time, at band camp, [EMAIL PROTECTED] said: PHP is more of a binding language that takes advantage of many different coding practices and puts them together. PHP is not jealous and does not separate or shun itself from other languages and borrows many of the ideas, schemes, similar libraries, etc. from these other languages. And yet, it is completely unique in its own way. Its easy-to-learn, low-cost and cross-platform identity has made it very popular in recent years. Perl is a great but is more of a mature language that has been around for the longest time and it doesn't have the same flexibility as PHP does on the web. You will find that PHP will far out-pace Perl coding, saving you both time and money. PHP works concurrently with free solution components such as Linux OS, Apache Web Server, MySQL Database and others (LAMP - Linux-Apache-MySQL-PHP). These components all work together beautifully, yielding fast and stable applications. Invest some time into it and see what we mean. -Original Message- From: Syed Ghouse [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 2:06 AM To: php mailinglists Subject: [PHP] what is difference between php and perl Hi all will anybody tell me the difference between perl and php Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40ffa442131291382852559! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
* Thus wrote Jurgen Stroo: End of the commercial break, we're going back to the news headlines ... Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). #!/usr/bin/perl print HTTP/1.0 200\r\n; print Content-Type: text/html\r\n; print Set-Cookie: SESS=123fdfd...\r\n print Connection: close\r\n; print Cache-Control: no-store..\r\n; print Pragma: no-cache \r\n; print Content-Type: text/html; charset=ISO-8859-1\r\n; print \r\n; $qs = $ENV{'QUERY_STRING'}; # # bunch of tr/,s/,maping code to figure out a query string vars # into $_GET # if ($_GET{'var'} ) { print $_GET{'var'}; } #!/usr/bin/php ?php if ($_GET['var']) { echo $_GET['var']; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] what is difference between php and perl
Hi, Or... #!/usr/bin/perl Use CGI; $q = new CGI; if ( $q-param_url(var) ) { Print $q-param_url(var) } Really, if you look at a lot of functions in PHP and Perl, they mimic each other, and other languages (C, etc..).. It's a personal preference choice. PHP was designed for dynamic web pages, Perl was designed to be a unix programming language that evolved. -Dan Joseph #!/usr/bin/perl print HTTP/1.0 200\r\n; print Content-Type: text/html\r\n; print Set-Cookie: SESS=123fdfd...\r\n print Connection: close\r\n; print Cache-Control: no-store..\r\n; print Pragma: no-cache \r\n; print Content-Type: text/html; charset=ISO-8859-1\r\n; print \r\n; $qs = $ENV{'QUERY_STRING'}; # # bunch of tr/,s/,maping code to figure out a query string vars # into $_GET # if ($_GET{'var'} ) { print $_GET{'var'}; } #!/usr/bin/php ?php if ($_GET['var']) { echo $_GET['var']; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
On Thu, 22 Jul 2004 18:23:08 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Jurgen Stroo: End of the commercial break, we're going back to the news headlines ... Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). #!/usr/bin/perl print HTTP/1.0 200\r\n; print Content-Type: text/html\r\n; print Set-Cookie: SESS=123fdfd...\r\n print Connection: close\r\n; print Cache-Control: no-store..\r\n; print Pragma: no-cache \r\n; print Content-Type: text/html; charset=ISO-8859-1\r\n; print \r\n; $qs = $ENV{'QUERY_STRING'}; # # bunch of tr/,s/,maping code to figure out a query string vars # into $_GET # if ($_GET{'var'} ) { print $_GET{'var'}; } You can use the CGI libraries for much of this. #!/usr/bin/php ?php if ($_GET['var']) { echo $_GET['var']; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:4100012220022056620586! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
I would have thought perl and php programmer would want to get together and trash asp or something. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
On Fri, 23 Jul 2004 06:26:07 +0600, raditha dissanayake [EMAIL PROTECTED] wrote: I would have thought perl and php programmer would want to get together and trash asp or something. ASP SUCKS! Happy now? Seriously, though, Perl is ok for some scripts and some people prefer it. I just don't like it extreme kludgy-ness. BTW, I often use Perl-Compatible Regular Expressions in my PHP code. ;-) -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
I would have thought perl and php programmer would want to get together and trash asp or something. PHP coders trash ASP. Perl coders trash everyone. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
Hello, On 07/22/2004 09:26 PM, Raditha Dissanayake wrote: I would have thought perl and php programmer would want to get together and trash asp or something. I think you mean, VBScript because ASP itself is not a language but rather a framework for using languages. You can use PHP code in ASP like you can use VBScript and Perl. Anyway, personally I would not bother to trash ASP or whatever comes from Microsoft because liking it or not many people use it because they trust it better than Open source technologies. Of course we can disagree, but when you trash something that other people trust you often are making it more difficult for them to accept what you defend (PHP, Open source, whatever). There is a saying that you won't catch flies with vinagre, which means you do not need to trash ASP to demonstrate that PHP is eventually better. You can always tell people the good PHP features and explain why with technical arguments, not highly biased emotional arguments like references to dislikes to everything that Microsoft does (no reasonable MS user bites that). Anyway, this is just a personal opinion about why some evangelization techniques are counterproductive. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
Manuel Lemos wrote: Hello, On 07/22/2004 09:26 PM, Raditha Dissanayake wrote: I would have thought perl and php programmer would want to get together and trash asp or something. I think you mean, VBScript because ASP itself is not a language but rather a framework for using languages. You can use PHP code in ASP like you can use VBScript and Perl. I did mean ASP and I do know that ASP is a framework. I will leave the rest unanswered. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
* Thus wrote Dan Joseph: Hi, Or... #!/usr/bin/perl Use CGI; $q = new CGI; if ( $q-param_url(var) ) { Print $q-param_url(var) } Excellent point! I guess my point with my random perl/php code snipplet was that php out of the box is much nicer than perl is as a web language. Simply re-enforcing php's foundation as a web language. Really, if you look at a lot of functions in PHP and Perl, they mimic each other, and other languages (C, etc..).. It's a personal preference choice. PHP was designed for dynamic web pages, Perl was designed to be a unix programming language that evolved. Well said, and as the languages are evolving, they both can serve as decent solutions for either web or (shell) scripting. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
On Wed, 21 Jul 2004 12:35:46 +0530, Syed Ghouse [EMAIL PROTECTED] wrote: Hi all will anybody tell me the difference between perl and php I'm giving you way too much hereyou should just search the web, I'm sure you can find much more in depth explanations. Perl is an old, old, incredibly old command-line scripting language that takes the kitchen-sink perspective, implementing lots of syntaxes for things and makes it very easy to obfuscate its code. In fact, for something you can't really get around obfuscating your code. However, it is very well tested and has been used extensively over the years. Many developers have created modules that you can download ffor free from CPAN. Later in its life, people added CGI handlers and connected Perl to Apache to be a web scripting language. PHP started out as a web scripting language and has evolved much since its inception. It is now (with PHP5) very Object friendly (Perl is absolutely not IMHO) and supported objects well in PHP4 as well. It has also grown and many people have created modules and code that you can freely download and use. One place to find high quality code is PEAR. Another place to find code is phpclasses. PHP has also grown into a command-line scripting language. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is difference between php and perl
they are 2 seperate languages, completely. I dont beleive the 2 languages have any relation to eachother, possibly you can relate the 2 as serverside scripting languages.. but.. its still a stretch :) see www.perl.org or php.net for history of the two. Jason On Wed, 21 Jul 2004 12:35:46 +0530, Syed Ghouse [EMAIL PROTECTED] wrote: Hi all will anybody tell me the difference between perl and php Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php