Don't ask to ask, just ask | |
PerlMonks |
Re: Capture::Tiny alternativeby glasswalk3r (Friar) |
on Mar 25, 2017 at 22:23 UTC ( [id://1185962]=note: print w/replies, xml ) | Need Help?? |
This post is getting interesting, with several different recommendations, but I think I still can add another one... IPC is hard... in some platforms, unreliable. MS Windows, for example, sucks completely. Even Capture::Tiny suffers over there. IPC sucks so much over there that even with a lot of gymnastics like IPC::Open3::Callback. It works better on UNIX, but after some time experimenting with CPAN::Reporter::Smoker, it is interesting to see that a lot of time you see the related processes waiting for output from another programs on OpenBSD for any reason that I couldn't figure out so far. It works indeed, just doesn't use CPU as I would like :-) So... bottom line, if you can go around IPC, do it. Otherwise be prepared to see weird stuff now and then.
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
In Section
Seekers of Perl Wisdom
|
|