Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Capturing errors from 3-arg pipe open in ActivePerl 5.020

by ateague (Monk)
on Nov 16, 2015 at 17:38 UTC ( [id://1147822]=note: print w/replies, xml ) Need Help??


in reply to Re: Capturing errors from 3-arg pipe open in ActivePerl 5.020
in thread [SOLVED] Capturing errors from 3-arg pipe open in ActivePerl 5.020

I got similar results: The shell throws an error, but it never makes it to Perl

Pipe.pl
#!/usr/bin/perl use 5.018; use strict; use warnings; open (my $ARTICLE, "-|", "caesar") or die "Can't start caesar: $!\n$^E +"; my $read = <$ARTICLE>; say "[$read]";
Result:
perl pipe.pl 'caesar' is not recognized as an internal or external command, operable program or batch file. Use of uninitialized value $read in concatenation (.) or string at pip +e.pl line 9. []

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found