Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: IPC::System::Simple: Why isn't my exception caught?

by karlgoethebier (Abbot)
on Nov 20, 2013 at 20:24 UTC ( [id://1063599]=note: print w/replies, xml ) Need Help??


in reply to Re: IPC::System::Simple: Why isn't my exception caught?
in thread IPC::System::Simple: Why isn't my exception caught?

Your advice looks a bit like hermetism to me - for the moment ;-)

So i need just a moment to think about/try it.

But BTW, here is what i figured out in a hurry using IPC::Run as advised by kschwab:

#!/usr/bin/env perl + use IPC::Run qw( start finish ); use strict; use warnings; my @cat = qw( cat foo ); my @wc = qw( wc -l); my $h = start \@cat, '|', \@wc, '2>', '/dev/null'; $h->finish; print $h->full_result(0) . qq(\n); print $h->full_result(1) . qq(\n); __END__ karls-mac-mini:Desktop karl$ ./ipc.pl + 0 + 1 + 0

Looks good/like expected. Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found