Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-02-2003, 03:04 PM   #1 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
Is Perl obsolete or something?

Why aren't there more Perl posts here? I registered thinking I was going to get to read all kinds of cool Perl posts and answer Perl questions, but the posts in this forum are few and far between.

I'm in the process of learning PHP (and I very much like it so far), which is fairly easy for me since it's about 75% similar to Perl. But with Perl being my first programming love, I'm discouraged that I don't see more Perl lovers out there.

What's the deal? Is it becoming obsolete and nobody told me?
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 05-02-2003, 05:08 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
do guh new is a perl guy =) .. i'm obsessed with php , and just know how to hack perl a little.
__________________
Mike
sde is offline   Reply With Quote
Old 05-02-2003, 08:51 PM   #3 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
Quote:
Originally posted by sde
do guh new is a perl guy =) .. i'm obsessed with php , and just know how to hack perl a little.
Well I guess I'm the opposite. I'm obsessed with Perl and I know how to hack PHP a little. Actually, I'm learning PHP and I'm coming along quite well. But right now my knowledge of PHP is probably about 1/3rd my knowlege of Perl. Even though the two are very similar, there is a lot to learn in both.

I only wish there were more hardcore Perl enthusiasts hanging around here. I would have a lot more fun.
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 05-03-2003, 08:04 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
i started to actively learn perl, but it seemed like i could do all that with php, .. is there things that perl does especially well compared to php?
__________________
Mike
sde is offline   Reply With Quote
Old 05-03-2003, 02:32 PM   #5 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
Quote:
Originally posted by sde
i started to actively learn perl, but it seemed like i could do all that with php, .. is there things that perl does especially well compared to php?
Not particularly. That's why I'm afraid it's losing popularity. Perl is an older, more mature language, but the fact is I think PHP can do all the same stuff, PHP does many things faster and better (especially with MySQL), and it's a little easier to program because it's more forgiving with regard to syntax errors.

Perl is still probably the best choice for tasks that don't involve serving web pages, like cleaning up files, rotating logs, various cron jobs, etc. But I think on the Web Perl is becoming a dinosaur.
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 05-03-2003, 03:21 PM   #6 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,696
redhead is on a distinguished road
The aspect is, that if you have to deal with alot of mengling with text, like a mailform, guestbook or something like that, then perl is your best choice, but if it is some dynamicaly created serverside page, then perl is too hard on the system compared to PHP.
Since most people want to keep the server load as low as posible, they'll use what's most forgiving.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 05-03-2003, 05:48 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
that confuses me a little .. i've compared string functions between php and perl and it seems like php has a bigger library.
__________________
Mike
sde is offline   Reply With Quote
Old 05-03-2003, 06:20 PM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
ah .. here's a big one. this thread has made me a little curious so i started to thumb through the perl 5 book again ..
Code:
stdin
PHP has no stdin function!! that is huge for running it from the shell. i don't doubt that will be implimented in the future... i hope.
__________________
Mike
sde is offline   Reply With Quote
Old 05-04-2003, 10:42 AM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
ya know, .. after thinking about it a little more, .. perl regular expressions is partly what makes php so powerful when it comes to text manipulation.
__________________
Mike
sde is offline   Reply With Quote
Old 05-04-2003, 08:04 PM   #10 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
True. We'd be lost without regexps. PHP was built to take the many of the best attributes from several different languages, and I have to say the developers did a great job. Many things in PHP are faster and easier, like no need to parse forms before grabbing the variables (that's a wonderful feature!). Or even something as simple as loading lines from a text file into an array and chopping off the newline characters. In perl it takes four lines of code, in PHP it takes one.

The more I learn about PHP, the more I like it. I just have a hard time at the thought of giving up Perl programming, but it might be the best way to go, for Web applications, anyway. I don't regret having spent years studing and learning Perl, it has helped me to pick up PHP much quicker than if I was a newbie to coding.
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 05-19-2003, 11:55 AM   #11 (permalink)
jeffro
Person of interest
 
jeffro's Avatar
 
Join Date: Mar 2003
Location: New Jersey
Posts: 102
jeffro is on a distinguished road
I hate to have to agree but I think that Perl on the web is on its way out also. Compared to PHP, Perl is becoming a dinosaur. HTML Mason narrows the playing field but there are very few people that actually know how to use it.

Personally I love Perl for system administration, that is what I mainly use it for. I will probabaly use Perl for personal sites just because I enjoy Perl and I don't feel like learning another language right now.

jeffro
__________________
Jeffro
Linux counter#:213782
GnuPG ID: 406238E7
jeffro is offline   Reply With Quote
Old 05-19-2003, 01:43 PM   #12 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
Quote:
Originally posted by jeffro
Personally I love Perl for system administration, that is what I mainly use it for. I will probabaly use Perl for personal sites just because I enjoy Perl and I don't feel like learning another language right now.
I feel much the same way, but I've been working on my PHP skills for a couple months now and It's going well. The more I learn, the more I like PHP. It's certainly far easier to learn and somewhat easier (I should say 'faster') to code than Perl is.

A year from now I could see myself coding all my Web application entirely in PHP. But I will continue to use Perl for sys admin jobs, like cron jobs. PHP can't do that stuff, and I never bothered to learn shell scripting (yuk!).
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 06-03-2003, 06:21 AM   #13 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Can't agree more with what's been said. I use Perl on a daily basis for many sysadmin tasks, quick data crunching, file conversion, user/data sync, etc, but not for anything web-related anymore.

Last year I rewrote a tool (our corporate budget collection/modeling system) in PHP/mysql which I had hacked out the year before in Perl. (with text file storage. ug!) Besides getting rid of that horrible code, it was really nice to be using PHP. Its making this year's changes much easier.
idx is offline   Reply With Quote
Old 06-15-2003, 12:14 AM   #14 (permalink)
Talleyrand
Registered User
 
Join Date: Mar 2003
Location: Seattle, WA
Posts: 7
Talleyrand is on a distinguished road
Send a message via ICQ to Talleyrand
Hey, don't lose heart! Here's another PERLophile... I use it pretty much exclusively at work. I agree totally that PHP is far more suited for web apps, but our department is responsible for a lot more of our shopping cart backend processing, billing, and database administration... PERL fits the bill pretty well for us. I continue to be amazed by how much PERL can still do...

I don't know how others feel, but I always thought it would be a good first language to learn... I guess with the focus on OO programming these days, PERL may not be the best, but...

It takes a lot of the guesswork out of the syntax, which allows you to focus more on the logic of things, without having to fret over whether something is an int, a double, or whatever.... or having to convert a string to an int to multiply, etc ...

Anyway, I love it. Feel free to email me if you ever want to share PERL stories

Talleyrand
Talleyrand is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
{perl} HTTP Error Code Response gty All Other Coding Languages 2 09-08-2004 11:09 AM
how come i dont hear much about perl Apodysophilia All Other Coding Languages 2 12-16-2003 10:05 AM


All times are GMT -8. The time now is 07:33 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting