| GumbyBRAIN | That's actually a reall ysmart cheat, i am 100% against the watermarking of soil. |
| extintor | rindolf: ok, thanks for the input |
| rindolf | (satisfied customer)++ # extintor |
| AnAnt | Khisanth: hmmm, you gave me a good idea, thanks |
| noroute | Hey! 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. |
| f00li5h | noroute: caller, or perhaps Carp's confess you may need to hack the code ... (don't worry, you can revert it without comitting) |
| Khisanth | or just use Devel::Trace |
| noroute | f00li5h: is it possible to modify it only at one place? Or do I have to hack all functions? |
| f00li5h | Khisanth speaks wisdom on this |
| noroute | Khisanth: Can I get Devel::Trace to only print sub calls? |
| timing | hello, 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? |
| Khisanth | that 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 |
| extintor | ls whops sorry |
| action | CPAN upload: Text-CSV-Track-0.4 by JKUTEJ |
| CPAN | upload: Text-CSV-Track-0.4 by JKUTEJ |
| timing | Khisanth: 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 |
| dngor | sysread() 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. |
| LeoNerd | timing: 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 |
| timing | LeoNerd: k let's check it ohw but the IO::Socket i use has getline() but it lags behind as well |
| LeoNerd | http://search.cpan.org/~pevans/IO-Async-0.03/lib/IO/Async/Buffer.pm |