home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2860
Discussions: 188,380, Posts: 2,243,462, Members: 232,608
Old October 29th, 2002, 01:38 AM   Digg it!   #1 (permalink)
Member
 
couch potato's Avatar
 
Join Date: Oct 2002
Location: Salem, Oregon
Posts: 480
Perl before C, except after Python....

im starting to learn C, and i was thinking about learning perl, too. What kind of things are best programmed with Perl? should I learn Perl before c?Im a newbie

couch potato is offline   Reply With Quote
Old October 29th, 2002, 01:40 AM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
No you shouldn't learn Perl before C.

Perl was invented so sysadmins can think taht they can program

While Perl is useful it isn't really that much eaiser than C, and learning it first will offer you little.

the languages themselves are very similar though.

Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.

jkrohn is offline   Reply With Quote
Old October 29th, 2002, 04:15 PM     #3 (permalink)
Member
 
gothic's Avatar
 
Join Date: Oct 2001
Location: Palatine, IL
Posts: 375
Not much easier? PERL is a heck of a lot easier than C.

I use both everyday, but I guess I just like to think I can program.. =]

*Edit* I can't leave well enough alone.

It's kind of silly to compare C and PERL when you think about it.

PERL is a scripting language, C is a programming language.
They can be used for similiar purposes, but that really depends on what you are doing. For example, you aren't going to see Quake17 in PERL.. =]

PERL is perfect for text modification. Quoted from "The Man":

"A high-level interpreted programming language widely used for a variety of tasks and especially for applications running on the World Wide Web."

While C can also be used for CGI purposes, it's generally geared towards higher-performance CGI/Apps.

This may come out wrong, but I'd like to think of PERL being a dumbed-down language. While it's not *actually* dumbed-down, you don't need to write a lot of code to do very simple tasks.

Bah, that's good enough.. =]


Last edited by gothic : October 29th, 2002 at 04:24 PM.
gothic is offline   Reply With Quote
Old October 29th, 2002, 04:21 PM     #4 (permalink)
Ultimate Member
 
fosin's Avatar
 
Join Date: Mar 2002
Location: Huntsville, AL
Posts: 1,034
Send a message via AIM to fosin
You should be able to get by with just C. You can download libraries that allow you to compile cgi programs. Harder than perl but easier than learning 2 languages .
fosin is offline   Reply With Quote
Old October 29th, 2002, 04:30 PM     #5 (permalink)
Senior Member
 
Join Date: Aug 2002
Location: Meeshigan
Posts: 602
I'd go with C, for the simple fact that you're going to learn about data types and get very used to matching them up. If you don't, you'll most likely get a compiler error. Perl has a much less ridgid type-casting structure and the script will just malfunction if you mis-match the types.
__________________
About 5% of the people in the world can't think.
Another 5% can think and do.
The remaining 90% can think, but don't.
Ruler2112 is offline   Reply With Quote
Old October 30th, 2002, 01:12 PM     #6 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Quote:
It's kind of silly to compare C and PERL when you think about it.
Comparing somethign like syntax it is not. Most basic statements from them are very similar. Knowledge in one makes learning the other much more simple.

As for their application obviously Perl is not C. Perl is quite slow and resource intensive compared to C and used only in small simple tasks, or when someone jsut plain doesn't know a better language.

Jkrohn
jkrohn is offline   Reply With Quote
Old October 30th, 2002, 09:23 PM     #7 (permalink)
Member
 
couch potato's Avatar
 
Join Date: Oct 2002
Location: Salem, Oregon
Posts: 480
Okay, thanks
couch potato is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Most Active Discussions
Is It Just Me? (2885)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Help with an Ati Radeon HD 4850 512.. (25)
Recent Discussions
Building a gaming computer advi.. (0)
Best digital camera for under 2.. (14)
Help with an Ati Radeon HD 4850.. (25)
Install Problem for Windows Def.. (0)
New Build ( Finally ) (1)
dual monitors wont boot (0)
Folderchat Weekday thread (439)
MSN Hotmail Down??? (7)
Laptop waking up itself (0)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 08:41 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28