New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
close for piped open sets $! to the wrong value #1150
Comments
From @mjdominusCreated by @mjdominusThis program runs /bin/false, a standard unix command, on a piped If the file handle came from a piped open C<close()> will [perlfunc/close] Since /bin/false exited with non-zero status, $! should be set to 0. #!/usr/bin/perl The output is: close rc: (); If there is any version of Perl that has ever set $! to 0, I cannot
Perl Info
|
From [Unknown Contact. See original ticket]mjd@plover.com writes:
Do you remember that $! is double-headed? It has both numeric and Ilya |
From @mjdominus
Maybe the documentation is at fault, then. I don't see why the If the only problem was that the program exited non-zero $! |
From [Unknown Contact. See original ticket]On Mon, Feb 07, 2000 at 04:19:54PM -0500, Mark-Jason Dominus wrote:
Because the value of $! *is not a string*. Ilya |
From @mjdominus
If it were a string, how would the behvaior be different in this case? |
From [Unknown Contact. See original ticket]
Wrong. Back into the Sophist's hole with you. Just It can be a string. And these are magically rather than canonically connected. So what. --tom |
Migrated from rt.perl.org#2113 (status was 'resolved')
Searchable as RT2113$
The text was updated successfully, but these errors were encountered: