This snippet behaves differently depending on whether use 5.005;(or any other version) is present .
use 5.005;
Why?
I have not seen anything suspicious in perldoc -f use.
perldoc -f use
#!/usr/bin/perl -w use strict; # If this is present, "Exiting\n" is printed, but the process doesn't exit. # If commented out, exit terminates this process. # Go figure use 5.005; # Open a sub-process that is "long-lived". open FH, 'perl -e "sleep 600" |' or die $!; $SIG{ALRM} = sub { print "Exiting\n"; exit; }; alarm(1); <FH>;
Tested on ubuntu 12.04 perl version 5.14.2 and debian perl version 5.10.1
PS: I'm not looking for a workaround, but an explanation.
I cannot reproduce this behavior using Perl 5.18 on Fedora 20. So this is a bit of a shot in the dark.
, , Perl (" , , $? ${^CHILD_ERROR_NATIVE}).
$?
${^CHILD_ERROR_NATIVE}
" " , , Perl . , , . , - .
Source: https://habr.com/ru/post/1525175/More articles:How to control the order of layers on a map in d3js - javascriptВ чем разница между A.prototype = B.prototype и A.prototype = new B()? - javascriptDetermining who changed a particular line of code (aka "guilty function") - c #Do mysql functions open a new mysql connection if no mysql link is specified? - phpThe plugin icon is missing when installing the Crashlytics 1.3 plugin for Android on Eclipse 4.2 Juno - androidusing UIView animateWithDuration: delay: Xcode - iphoneR Vectorization Acceleration for a Square Matrix - performanceUsing Apache library for OLS regression: matrix is an exceptional exception - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1525179/alternatives-to-springs-deprecated-expressionevaluationutils-evaluate-methods&usg=ALkJrhinQfziz-A46ME1KlSYOqBK33n25gIs there an equivalent to F # Enumerable.DefaultIfEmpty? - linqAll Articles