Grokbase
Topics Posts Groups | in
x
[ help ]

Re: Why not make close receive a list of FH?

View PostFlat  Thread  Threaded | < Prev - Next >
Alberto Simões Re: Why not make close receive a list of FH?
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Rafael Garcia-Suarez wrote:
> 2008/11/11 Alberto Simões <albie@alfarrabio.di.uminho.pt>:
>> Well, this is just an idea,
>>
>> but it would be cool:
>>
>>   open3 (A, B, C, "foo");
>>
>>
>>   close A, B, C;
>>
>> Just a stupid idea.
>> Go on! :)
>
> And what would be the return value ?

I said it was a stupid idea :-[


--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal

Thread : Why not make close receive a list of FH?
1)
Alberto Simões Well, this is just an idea, but it would be cool: open3 (A, B, C, "foo"); close A, B, C; Just a...
2)
Rafael Garcia-Suarez 2008/11/11 Alberto Sim=F5es <albie@alfarrabio.di.uminho.pt>: And what would be the return value ?...
3)
Alberto Simões I said it was a stupid idea :-[
4)
Paul Johnson Without defending the value of the idea (:-p), it would return the number of filehandles...
5)
Abigail Same as with unlink, that is, the number of succesfully closed file handles? Abigail
6)
Tux I am more worried about the error message close A, B, C or die "Close failed: $!"; if close A...
7)
Abigail That issue isn't very different from: unlink $A, $B, $C or die "Unlink failed: $!"; chmod $mode,...
8)
Rafael Garcia-Suarez 2008/11/11 Abigail <abigail@abigail.be>: Right, we'd still have the problem of knowing from which...
9)
Abigail Of course. If you have the need to know from which filehandle the $! comes from, you shouldn't use...
10)
David Nicol close $_ or warn "close: $!" for (*A,*B,*C); perl -wle 'open A, "</dev/random"; open B,...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >