#perl - Tue 13 Mar 2007 between 09:55 and 10:20



GumbyBRAINThat's actually a reall ysmart cheat, i am 100% against the watermarking of soil.
extintorrindolf: ok, thanks for the input
rindolf(satisfied customer)++ # extintor
AnAntKhisanth: hmmm, you gave me a good idea, thanks
norouteHey! Anyone knowing how to get call traces for perl functions withour modifying the code? Debug::Trace does not work because I have to know functions know upfront. I want simple caller->callee values...
arg, what I wanted to say: I want all calls to be printed.
f00li5hnoroute: caller, or perhaps Carp's confess
you may need to hack the code ...
(don't worry, you can revert it without comitting)
Khisanthor just use Devel::Trace
noroutef00li5h: is it possible to modify it only at one place? Or do I have to hack all functions?
f00li5hKhisanth speaks wisdom on this
norouteKhisanth: Can I get Devel::Trace to only print sub calls?
timinghello, how can i do sysread inside a a glib::io->add_watch(fileno ($sock), in => sub {});. while($sock->connected) { $line = <$sock>; works. but i need some sort of threading now
haha a bit unclear i guess?
Khisanththat is what the doc is for and if not you have it's source and a way to do it without modifying any of your current source
timing: you could use sysread as well, but if you use <> it is going to block until you get a newline
extintorls
whops sorry
actionCPAN upload: Text-CSV-Track-0.4 by JKUTEJ
CPANupload: Text-CSV-Track-0.4 by JKUTEJ
timingKhisanth: i get newlines, it's IRC. But for some reason it lags 5 lines behind
or 4
dunno
so i tried sysread
it works
i receive everything
but sometimes more lines in one buffer
I had this with a GUI application a month back
now i use sysread there
that solves the problem for that application
but for this one it's not
dngorsysread() is not line-oriented. You'll need to split up your input on newlines.
If it behaves in a line-oriented fashion somewhere, you're just lucky it works.
LeoNerdtiming: Suggest: Use my IO::Async object
IT does the reading for you, and even has a nice example on how to handle lines like this
And integrates nicely with Glib
timingLeoNerd: k let's check it
ohw but the IO::Socket i use has getline()
but it lags behind as well
LeoNerdhttp://search.cpan.org/~pevans/IO-Async-0.03/lib/IO/Async/Buffer.pm

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive