Skip Menu |
 

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 125895
Status: new
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: sjaluo [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 'open() or die' cannot work with pipe
Download (untitled) / with headers
text/plain 610b
Hi, I got problem using 'open() or die' paradigm when I have open() with pipe on Strawberry Perl: C:\>perl -E "open(FH, 'foo |') or die; say 'I am still alive';" I am still alive 'foo' is not recognized as an internal or external command, operable program or batch file. open() with pipe always returns true even if there is no 'foo' program existed. In Linux, the same program gets following result % perl -E "open(FH, 'foo |') or die; say 'I am still alive';" Died at -e line 1. I think 'open() or die' behavior should be portable in Perl? My Strawberry Perl version is 5.28.0.1_x64 in Win7. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.