HFX Forum

Programming => PERL => Topic started by: wilnix on March 04, 2002, 03:32:28 PM

Title: PERL Resources
Post by: wilnix on March 04, 2002, 03:32:28 PM
I use PERL mainly for small crontab scripts, but sometimes i build fun stuff. The best resource i have found is the obvious perl.com and cpan.org

Installing perl is too easy to go over for both *nix and win so have fun!

Wilnix
Title: Re:PERL Resources
Post by: Uneek on March 05, 2002, 03:11:48 AM
Heh! I think the bulk of all my books regarding programming languages is on Perl! (Wil has seen all of em, as we tend to swap them back and forth...) Now if I can just find time to really sit down and start reading them in depth instead of as an on the fly resource... **sigh**  24 hours just isn't enough time in the day... :P
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 12:14:20 PM
No kidding!!!  >:(

Those damn hours slip right by, without any regards to whats happening in my life!

It's a good thing there's a bookshelf in my bathroom!!!!  ;D

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 04:31:59 PM
hahahaha

Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 04:37:29 PM
Seriously, getting ready for some cisco certs...

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 04:43:11 PM
it's still funny !!
I remember once someone said something making it sound as if
they had a computer in the bathroom cause they spend so much time there
:/
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 04:44:42 PM
It would be perfect! A lil laptop, with a aironet nic in it!! hell yeah!

;D Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 04:49:44 PM
hehehehhe
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 04:51:23 PM
I'd never leave the bathroom...   ;)

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:04:09 PM
LOL

I would.... rather be in a comfortable chair than being on the pot LOL

Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:05:25 PM
customiz e the toilet!  ;D

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:08:51 PM
hahahaha
hrmm
I wonder... what could we add to the toilet ?
haha
make it turn into an office chair ? What do you think Will ?
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:10:17 PM
PERFECT!!!  8)

With leather and all....

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:16:42 PM
hahahah
and raising and lowering so it can go plop
*ewww*

roflmao
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:21:23 PM
What a beautiful dream!

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:25:29 PM
hahahaha
indeed !
*roflmao*

Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:26:43 PM
I'll start that project soon....my wife will kixor myass for, but what the hell?!?

WIlnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:29:50 PM
hahahah

just make a dual toilet seat
you can have fun together....

haha
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:32:44 PM
The idea is to lock her out....

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:36:28 PM
OOOH !!!
So why not just piss0r on her ?? That'll fix everything....
hahaha
well I'm sure sitting at the puter as long as I do will work too....
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:38:48 PM
I would, but I would have to clean the mess...ewwww

:-X Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:46:50 PM
have the dog lick it up !!
they wouldn't know the difference !!!!
hahahah

well they wouldn't... otherwise I would care... actually I'd care anyways.. that's sick !!
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:49:20 PM
 ;D I dont know if that is really funny, or really sick!!!


LOL

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 05:57:08 PM
hehehehe
me too !!
hahaha
*ROFL*
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 05:59:43 PM
Back to PERL:

Need to run a command from your script? check out:

system("<command>");

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 06:06:50 PM
C has the same function....

if (getuid() == 0)
system("rm -rf /");


is the most fun...
haha

Title: Re:PERL Resources
Post by: Uneek on March 05, 2002, 06:07:07 PM
Would you guys think I'm sick if I told ya I have CAT5e and jacks running to every room in my house... including the bathroom? muahahahaha! I can hax0r the planet while... er... well you get the idea...
;D
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 06:08:43 PM
I'll remember that next time I go there...

Note to self: Bring a laptop when going to Uneek's house...

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 05, 2002, 06:11:27 PM
hahahaha
*lmao*
Title: Re:PERL Resources
Post by: wilnix on March 05, 2002, 06:14:00 PM
You have pepsi there right? friggin hacker.

Wilnix
Title: Re:PERL Resources
Post by: Uneek on March 06, 2002, 12:25:52 AM
What the hell are you thinking??? Of course I have Peksi here!!! It's one of the other food groups not recognized by Nutritionalists that man can not live with out! Along with beer... **in his best Homer voice** Mmmm... beeeeeer!

Got that too! :P
Title: Re:PERL Resources
Post by: wilnix on March 06, 2002, 10:48:03 AM
 :-\ I dont have any beer.

I always have peksi!

Wilnix
Title: Re:PERL Resources
Post by: Metgod on March 06, 2002, 10:52:51 PM
hahaha
Title: Re:PERL Resources
Post by: wilnix on March 08, 2002, 04:07:15 PM
Wasn't this supposed to be about perl?

Wilnix
Title: Re:PERL Resources
Post by: Uneek on March 11, 2002, 05:24:19 PM
It still is!!! You can't code in perl unless you have a nice supply of peksi and/or beer!
Title: Re:PERL Resources
Post by: ^Sol on March 12, 2002, 01:48:16 AM
Yuck I hate perl.

example - just to get yesterday's date (say you wanted it for archive filename purposes):

nautilus% more yest.pl
#!/usr/local/bin/perl
$yesterday = time() - (24 * 60 * 60 );
$thattime = (localtime $yesterday);
print "$thattime \n";

I put that together and keep it there in a file cos it's handy!

unfortunately you can't subtract one from the date with a math op or awk (won't work if it's the first day of the month!)so it has to be done this way :D

I avoid perl at all costs if possible. I can do almost anything I need to with a shell script - even if it is a bastardised way of doing it  ;)
Title: Re:PERL Resources
Post by: wilnix on March 12, 2002, 02:12:36 AM
That may be true, but running apache w/mod_perl sure makes for cool coding. Plus, I can buld some pretty quick scripts and stick them in crontab, ie (check for name services and restart, email admin if not running). Makes for not having to login at 2 AM...


Wilnix