"be consistent" | |
PerlMonks |
Re: The print is output later after dieby choroba (Cardinal) |
on Jan 28, 2022 at 09:48 UTC ( [id://11140916]=note: print w/replies, xml ) | Need Help?? |
STDOUT which print uses by default is buffered. die outputs to STDERR which is not buffered, therefore it shows immediately. The buffering can be turned off:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|