#perl
08 October 2007
Total 42 pages. You are browsing page 1/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Oct 08 00:00:34 2007
--- Day changed Mon Oct 08 2007
00:00 <****> Eidolos: since it is not trapping die, I cannot examine $@ after the eval.
00:00 <****> joseki: Are you sure it is calling die() and not exit?
00:00 <****> hm
00:00 <****> no =)
00:00 <****> lemme check
00:01 <****> ohh I misunderstood
00:01 <****> eek! yeah, it's calling die then exit
00:01 <****> good catch
00:01 <****> can i trap that? ;)
00:01 <****> which module is this?
00:01 <****> mine
00:01 <****> he
00:02 <****> calling exit in a module is almost certainly Bad
00:02 <****> ok. i should change that then to just die so it can be trapped?
00:03 <****> yeah
00:03 <****> VVelox: well, if it's on the same server you could use lsof or netstat or something
00:04 <****> non perl question, is there an performance advantage to use autofs when you have like 30 nfs mounts and only 5 of them actually frequantly used?
00:04 <****> thanks so much
00:04 <****> joseki: your fee for this lesson.. one game of Go! :) actually no, since I'm on my way out the door
00:04 <****> joseki: Calling exit from a module is almost always a bad idea
00:05 <****> joseki: die is much better
00:05 <****> only if you give me a good gift in return (or good slave?)
00:05 <****> joseki: die and then exit shouldn't be a problem--when the die happens, execution will come back to the eval
00:06 <****> eval: eval { die "foo"; exit } print "Caught: $@"
00:06 <****> jagerman: ''ERROR: syntax error at (eval 213) line 1, near "} print"
00:06 <****> Caelum: lsof is useless if more than one user is connected to the server at a same time, unless I am missunderstanding something about socket programming
00:06 <****> eval: eval { die "foo"; exit }; print "Caught: $@"
00:06 <****> jagerman: Caught: 27321: foo at (eval 213) line 1.1
00:07 <****> I'm getting a "Cant locate blablabla.pm in @INC" error, exept that the blablabla.pm is in one of the folders specified in @INC...
00:07 <****> What could be the cause?
00:07 <****> perms look fine
00:08 <****> DealthWolf: the package line?
00:09 <****> joseki: no
00:10 <****> DeathWolf: can you use a paste bot to show that's correct?
00:10 <****> VVelox: find the socket under /proc somewhere then...
00:10 <****> DeathWolf: a one-liner that prints @INC, and ls that shows the .pm, and a perl -M that uses it
00:11 <****> Caelum: procfs is a security hazard in it's self
00:11 <****> "security opportunity"
00:13 * CPAN upload: Cache-Memcached-Managed-0.19 (+++++) by ELIZABETH
00:13 * CPAN upload: POE-Declarative-0.005 by HANENKAMP
00:25 <****> should i do use lib("/foo", "/bar"); or should they each be on their own line as use lib "/foo"; and use lib "/bar"; ?
00:25 <****> perldoc lib
00:25 <****> use lib LIST;
00:26 <****> mauke: ah, thanks
00:28 * CPAN upload: BSD-Process-0.04 by DLAND
00:31 <****> f00li5h, http://haslayout.net/ liek? :)
00:33 <****> any way, using the POE module, for an IRC bot, to have the bot connect to multiple channels at one time?
00:33 <****> Send multiple joins.
00:34 <****> Yeah.. 'a loop'.
00:34 <****> dngor: didn't know you could do that.. thanks.
00:34 <****> Uh.. huh.
00:35 <****> "Duh?"
00:36 <****> My POE Session only handles one event then exits!
00:37 <****> or something.
00:37 <****> Tell it to stick around.
00:38 <****> Slap it around a bit.
00:38 <****> Teach it who's the boss.
00:38 <****> threaten to send dngor after it
00:38 <****> I'll send it to f00li5h's house for some loving.
00:39 <****> You'll be happy to know the new POE::Kernel docs discuss your problem.
00:39 <****> It even mentions your name. "Ha!" it says, "dec_ can't even figure this out!"
00:39 <****> I don't actually have a problem, I was more jesting at kb3llm.
00:40 <****> That's okay. I'm making this up at your expense, so the circle fo strife remains unbroken.
00:40 <****> Excellent.
00:41 <****> Hmm, I'm going to be late for work.
00:41 <****> .o/
00:43 * CPAN upload: Class-Modular-0.05 by DON
00:44 <****> As opposed to the other kind of class... the monolithic ones.
00:58 <****> what happens when one copies hashes. large hashes. 70k keys. Is it useful to do keys(%d) = 70000; or not (%d is the dest hash).
00:58 * CPAN upload: Data-Visitor-0.09 by NUFFIN
01:08 <****> yes, presizing it will help a little.
01:08 <****> but in general, don't copy big-ass hashes
01:08 <****> Maybe take a reference to it instead?
01:09 <****> but i like big hashes!
01:09 <****> oh you said _HASHES_
01:09 <****> Yes.
01:09 <****> :)
01:09 <****> i thought u were talkin 'bout pushin cushion
01:09 <****> =P
01:11 <****> but in general, don't copy big-ass hashes
01:11 <****> but in general, don't copy big ass-hashes
01:11 <****> but in general, don't copy big ass-hashe
01:11 <****> too late, nub.
01:11 <****> GET GET THE FUCK OUT.
01:11 <****> buubot: jerk it
01:11 <****> buu!
01:11 <****> iank: COULD YOU PLEASE TYPE "MAKE" IN THE QUEUE DIRECTORY OR SHOULD I JUST SUCK COCK FOR UNDER TEN MINUTES
01:11 <****> :D
01:11 <****> ELLAY.
01:11 <****> BUU.
01:11 <****> FINE. I WAS GOING TO SLEEP ANYWYA.
01:12 <****> NO LOVE FOR YOU BUU.
01:12 <****> YAY
01:12 <****> ..
01:12 <****> SLEEPING BOTJES.
01:13 <****> YES. THE BOTJES ARE SLEEPING.
01:13 <****> GOODBYE
01:13 <****> what a strange channel
Total 42 pages. You are browsing page 1/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
