October 15, 2018, 10:45:42 PM

Author Topic: PERL Resources  (Read 25357 times)

0 Members and 1 Guest are viewing this topic.

Offline Uneek

  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 306
  • Country:
  • Gender: Male
    • HFX International Org.
Re:PERL Resources
« Reply #30 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
*** Sleep: A completely inadequate substitute for caffeine. ***
01010010010101000100011001001101

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:PERL Resources
« Reply #31 on: March 06, 2002, 10:48:03 AM »
 :-\ I dont have any beer.

I always have peksi!

Wilnix
alt email address: wilnix@hackphreak.org

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1116
  • Country:
  • Gender: Male
Re:PERL Resources
« Reply #32 on: March 06, 2002, 10:52:51 PM »
hahaha
"My Terminal is my Soul"

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:PERL Resources
« Reply #33 on: March 08, 2002, 04:07:15 PM »
Wasn't this supposed to be about perl?

Wilnix
alt email address: wilnix@hackphreak.org

Offline Uneek

  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 306
  • Country:
  • Gender: Male
    • HFX International Org.
Re:PERL Resources
« Reply #34 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!
*** Sleep: A completely inadequate substitute for caffeine. ***
01010010010101000100011001001101

^Sol

  • Guest
Re:PERL Resources
« Reply #35 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  ;)

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:PERL Resources
« Reply #36 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
alt email address: wilnix@hackphreak.org