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
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
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
hahahaha
Seriously, getting ready for some cisco certs...
Wilnix
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
:/
It would be perfect! A lil laptop, with a aironet nic in it!! hell yeah!
;D Wilnix
hehehehhe
I'd never leave the bathroom... ;)
Wilnix
LOL
I would.... rather be in a comfortable chair than being on the pot LOL
customiz e the toilet! ;D
Wilnix
hahahaha
hrmm
I wonder... what could we add to the toilet ?
haha
make it turn into an office chair ? What do you think Will ?
PERFECT!!! 8)
With leather and all....
Wilnix
hahahah
and raising and lowering so it can go plop
*ewww*
roflmao
What a beautiful dream!
Wilnix
hahahaha
indeed !
*roflmao*
I'll start that project soon....my wife will kixor myass for, but what the hell?!?
WIlnix
hahahah
just make a dual toilet seat
you can have fun together....
haha
The idea is to lock her out....
Wilnix
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....
I would, but I would have to clean the mess...ewwww
:-X Wilnix
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 !!
;D I dont know if that is really funny, or really sick!!!
LOL
Wilnix
hehehehe
me too !!
hahaha
*ROFL*
Back to PERL:
Need to run a command from your script? check out:
system("<command>");
Wilnix
C has the same function....
if (getuid() == 0)
system("rm -rf /");
is the most fun...
haha
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
I'll remember that next time I go there...
Note to self: Bring a laptop when going to Uneek's house...
Wilnix
hahahaha
*lmao*
You have pepsi there right? friggin hacker.
Wilnix
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
:-\ I dont have any beer.
I always have peksi!
Wilnix
hahaha
Wasn't this supposed to be about perl?
Wilnix
It still is!!! You can't code in perl unless you have a nice supply of peksi and/or beer!
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 ;)
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