Search Members Help

» Welcome Guest
[ Log In :: Register ]

Page 1 of 512345>>

[ Track This Topic :: Email This Topic :: Print this topic ]

reply to topic new topic new poll
Topic: Who wants to learn Perl?< Next Oldest | Next Newest >
 Post Number: 1
damien_s_lucifer Search for posts by this member.
Emperor of Detnet
Avatar



Group: Members
Posts: 33
Joined: Jan. 1970
PostIcon Posted on: Oct. 29 2001,01:34  Skip to the next post in this topic. Ignore posts   QUOTE

I'm having a grand ol' time helping someone learn C via email. It's good exercise for me. I use Perl so much that my basic C skills are kind of rusty, and this forces me to polish them up.

It's also making me remember why I fell in love with Perl in the first place.

So here's an offer to those of you who know C, and are interested in checking out Perl, but don't want to blow fifty bucks on the Camel Book (Programming Perl by Larry Wall et. al, O'Reilly Press) without knowing if you're even going to USE Perl. If there is sufficient interest I'll teach a mini-course on the language.

Things you'll need :

- a working knowledge of C or C++. You don't have to be a C guru, but you should understand the basic control structures (if, for, while, etc.)

- A working copy of the perl interpreter, v.5.04 or better. If you're running Linux, you probably already have one - type 'perl --version' at the shell to see what version you have. Windows users can download it from ActiveState; it's freeware.

- A text editor. Windows users can use Notepad, but I highly recommend TextPad so you can have syntax highlighting.

- If you want to write CGI scripts, you'll need to have access to a Web server that is configured to support them. I can help a bit with Apache; IIS users are on their own unless someone who knows IIS wants to help out...

If you're interested, let me know.

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 2
LiNeY Search for posts by this member.
Lady of DetNet
Avatar



Group: Members
Posts: 782
Joined: Dec. 2000
PostIcon Posted on: Oct. 29 2001,14:52 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

ME ME ME!!!

I'd love to learn Perl, but being that I'm the someone just being taught C via email... I guess I'd better wait a while. But I already want to say that after C you gotta teach me Perl.

------------------
Questo è il bacio de Tosca!

Offline
Top of Page Profile Contact Info 
 Post Number: 3
demonk Search for posts by this member.
The other white meat
Avatar



Group: Members
Posts: 800
Joined: Aug. 2000
PostIcon Posted on: Oct. 29 2001,15:42 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

Perl kicks some major ass! It's what Java has always wanted to be but failed at (it can run on almost ANY OS with little to no modification to the code). Plus it's the only OO scripting language I know of And doing GUI is sooooooooo easy with Perl/Tk! And I know for a fact that it is the scripting language standard at places like Intel, so there definatly are real world benifits to learns Perl. I've been playing with Perl in my spare time and using at work (Intel), and I'm ALWAYS learning new tricks with it. You won't regret learning it.

------------------
10 PRINT "HOME"
20 PRINT "SWEET"
30 GOTO 10

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 4
damien_s_lucifer Search for posts by this member.
Emperor of Detnet
Avatar



Group: Members
Posts: 33
Joined: Jan. 1970
PostIcon Posted on: Oct. 29 2001,19:00 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

quote:
Originally posted by demonk:
Perl kicks some major ass! It's what Java has always wanted to be but failed at

your post, demonk, is dead-on. I keep hearing that Java is the standard, everyone should use Java, blah blah blah. Java gets a lot more press, but if you look under the hood of most websites, you're a LOT more likely to find Perl than Java Servlets or some other technology du jour.

Look back through history, and you'll find that there have been hundreds of languages that were sure to be the next Big Thing... but it's the ones that spread quietly that stuck around.

Right now all the k1dd1es are rushing to learn Java and Visual Basic. Unlike C or Perl, the languages don't make you spend years mastering the intricacies of good code to write something cool. But they also limit you in ways that Perl and C don't... so if you want to grow, you have to go learn Perl and C anyway, but by that time you're so used to the *GET*RESULTS*NOW* style of coding that Perl and C just seem frustrating and boring and you give up.

I've seen it happen plenty of times

LiNey, sure, I'll teach you Perl... but let's get thru the basics of C first. Learning C forces you to learn the Rules of Good Programming that have stood the test of time.

Perl doesn't enforce the rules because it assumes you already know them. It allows you to write sloppy code if you want. For beginning programmers, this means it will happily allow you to develop very bad programming habits.

For example, C makes you declare all your variables. This makes you keep track of what variable you're using for what purpose. Perl, on the other hand, allows you to pull variable names out of your ass and use them wherever you see fit. Depending on your experience, this can be a blessing or a curse...

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 5
kornalldaway Search for posts by this member.
1337 like alan turing
Avatar



Group: Members
Posts: 297
Joined: Jan. 2001
PostIcon Posted on: Oct. 29 2001,19:10 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

question:
is it better to start with perl and then move on to c or the other way around?
Offline
Top of Page Profile Contact Info 
 Post Number: 6
Spydir Search for posts by this member.
proof that humans suck (www.netsyndrome.net)
Avatar



Group: Members
Posts: 1089
Joined: Apr. 2001
PostIcon Posted on: Oct. 29 2001,19:37 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

C's the base for a lot of languages that have come out since 1970, and if it's not the base it either got some C style stuff. And if it has nothing at all to do with C, it probably sucks.

------------------
Net Syndrome - www.netsyndrome.net
Catch The Sickness

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 7
chmod Search for posts by this member.
Jedi Knight
Avatar



Group: Members
Posts: 373
Joined: Jul. 2001
PostIcon Posted on: Oct. 29 2001,20:03 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

quote:
Originally posted by kornalldaway:
question:
is it better to start with perl and then move on to c or the other way around?

no, most definitely start with C first... as dsl noted.

Offline
Top of Page Profile Contact Info 
 Post Number: 8
Tattered Search for posts by this member.
DetVet
Avatar



Group: Members
Posts: 144
Joined: May 2001
PostIcon Posted on: Oct. 29 2001,21:27 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

Any recommendations on sites / books / large pdf files for me to learn C from.. right from the basics.. I had my fun with basic and turbo pascal 7 a couple years ago.. but never caught onto C.. I think it would be really interesting to learn though.. and then maybe I'll take an interest in perl as well.

This message has been edited by Tattered on October 30, 2001 at 05:32 PM

Offline
Top of Page Profile Contact Info 
 Post Number: 9
damien_s_lucifer Search for posts by this member.
Emperor of Detnet
Avatar



Group: Members
Posts: 33
Joined: Jan. 1970
PostIcon Posted on: Oct. 29 2001,23:01 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

Pascal was the first compiled language I learned! I still have good ol' bp.exe and turbo.exe on my hard drive

Pascal and C are so similar that you should be able to dive into Perl without a problem. Almost all the differences have to do with syntax :

- begin and end in Pascal are written { and } in C
- Assignment is := in Pascal, = in C
- Comparison in = in Pascal, == in C
- The dereference operator is ^ in Pascal, * in C
- procedures in Pascal are functions with return type void in C
- etc.

Otherwise, the data types are pretty much the same, accessing data is pretty much the same, control structures are almost the same...

This message has been edited by damien_s_lucifer on October 30, 2001 at 06:04 PM

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 10
Beldurin Search for posts by this member.
Mayor of Detnet
Avatar



Group: Members
Posts: 1242
Joined: Aug. 2001
PostIcon Posted on: Oct. 29 2001,23:04 Skip to the previous post in this topic.  Ignore posts   QUOTE

quote:
Originally posted by: damien_s_lucifer
- If you want to write CGI scripts, you'll need to have access to a Web server that is configured to support them. I can help a bit with Apache; IIS users are on their own unless someone who knows IIS wants to help out...

I seem to recall that it wasn't that difficult (but it was a LONG time ago). I do, however have access to IIS servers to play around with and figure it out if anyone needs the help.

I went through a fairly logical progression (I think):

Some BASIC (very little)
Pascal
C++
Assembler
Perl
PHP

And for the record, I still maintain (in the face of opposition and stupidity) that HTML is not a programming language. Thank you.

edit: had to edit

------------------
Give me ambiguity or give me something else...

This message has been edited by Beldurin on October 30, 2001 at 06:07 PM

Offline
Top of Page Profile Contact Info WEB 
41 replies since Oct. 29 2001,01:34 < Next Oldest | Next Newest >

[ Track This Topic :: Email This Topic :: Print this topic ]


Page 1 of 512345>>
reply to topic new topic new poll

» Quick Reply Who wants to learn Perl?
iB Code Buttons
You are posting as:

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code