hagar need perl, you help hagar, hagar be your friend...

hagar's picture

They have: 104 posts

Joined: Oct 2002

heya folks, I need to learn perl/CGI, and fast! Does anyone have some good URL's to guides and references for the language? need syntax guides and funtion listings etc.

Do we have an area in this forum just for reference links and resources for scripting and designing? If not, shouldnt we?

"I ’ll make thee glorious by my pen, And famous by my sword." - James Graham, Marquess of Montrose (1612–1650)

They have: 601 posts

Joined: Nov 2001

A good starting Perl tutorial and reference guide I've found to be useful is:

http://www.comp.leeds.ac.uk/Perl/start.html

For CGI (please remember Perl and CGI are totally differnet things) I've found the following course helpful:

http://www.easystreet.com/~ovid/cgi_course/

Good luck.

And if you need any more help, resources, reference etc. -- just ask. Smiling

- wil

He has: 1,016 posts

Joined: May 2002

Maybe you should get one of those "Learn programming CGI in 24 hours" books Laughing out loud

If you don't have any programming experience then I suggest you try learning PHP instead. If you want to learn Perl, there is a book by O´Reilly called "Learning Perl" that is truely great. One of the best computer related books I've ever read.

hagar's picture

They have: 104 posts

Joined: Oct 2002

I've got the programming experience, vbscript/aspscript fluent and php mildly fluent, but I have a specific project need to do perl/CGI so i can customize an installation of MRTG for a company project.

I'd rather steer away from printed goods, I have no budget to get them, and I'll be damned if I'm buying them myself:D

thanks for the links Wil!

"I ’ll make thee glorious by my pen, And famous by my sword." - James Graham, Marquess of Montrose (1612–1650)

He has: 1,380 posts

Joined: Feb 2002

love the thread title...besides that, like on most programming threads, can't really help...sorry

that was the light of my day

They have: 601 posts

Joined: Nov 2001

What do you need to customize about MRTG? I thought MRTG was written in C anyway ... ?

They have: 447 posts

Joined: Oct 1999

the active perl docs are a great and handy reference

hagar's picture

They have: 104 posts

Joined: Oct 2002

written in C? not from what the admin told me, but he could be wrong. It requires active perl and is full of .pl files he said... sooo I dunno lol. I havent even seen the damn thing yet:D

either way, think perl would be a good thing to learn, ive just finished an install of apache 2.x, active perl and php 4.x.x.x.x.x or whatever its up to now, so now I can see how I go. I'm refreshing my php skills at the same time, i forgot how much I forgot:D

"I ’ll make thee glorious by my pen, And famous by my sword." - James Graham, Marquess of Montrose (1612–1650)

They have: 601 posts

Joined: Nov 2001

Hm. OK. I might be totally wrong. I just installd MRTG from the Debian deb files and left it to it. Works great for me "out of the box". What kind of customization do you need doing to it?

- wil

dk01's picture

He has: 516 posts

Joined: Mar 2002

Hmm... what is this MRTG thing that you guys are talking about and what is its purpose?
-dk

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Quote: Quoted from http://people.ee.ethz.ch/~oetiker/webtools/mrtg/

The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing graphical images which provide a LIVE visual representation of this traffic. Check http://www.ee.ethz.ch/stats/mrtg/ for an example. MRTG is based on Perl and C and works under UNIX and Windows NT. MRTG is being successfully used on many sites around the net.

Mark Hensler
If there is no answer on Google, then there is no question.

hagar's picture

They have: 104 posts

Joined: Oct 2002

im going to be trying to mate a database to it to generate graphs, got no idea of the level of redevelopment this will take if any. The admin will be using it just for his logs for network usage which I understand is pretty vanilla for it to do.

"I ’ll make thee glorious by my pen, And famous by my sword." - James Graham, Marquess of Montrose (1612–1650)

They have: 601 posts

Joined: Nov 2001

Hm. One possible way around this is to run a cron job every day or every x you want the information archived and run a perl/php/bash script that skims the information from the output pages and throws them into a database?

- wil

hagar's picture

They have: 104 posts

Joined: Oct 2002

already got the RDB's, i just need the info from it used in the graphs through some sort of ODBC connection.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.