Thread Bad file descriptor (22 answers)
Opened by rosti at 2011-06-04 18:42

pq
 2011-06-05 19:34
#149428 #149428
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
wie sich im bugreport gezeigt hat, ist das tatsächlich nicht immer der fall:
Code: (dl )
1
2
3
4
5
6
7
8
$ perl -wE'
open my $fh, q{|/usr/bin/foobar "test"} or die "Could not open";
say "opened";
close $fh or die "Could not close: $?"
'
opened
sh: /usr/bin/foobar: not found
Could not close: 32512 at -e line 4.


also auch immer close() abfragen, wie ich weiter unten schrieb.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Bad file descriptor