more POST recitation

2001-02-09 Thread David L. Nicol
Johan Vromans wrote: Would the POST be executed if the open fails? Why? Why not? sub readit { POST { close F; } open F, " $f" or die; scalar(F) } Yes, because the flow of control passed it before the

Re: more POST recitation

2001-02-09 Thread Ken Fox
"David L. Nicol" wrote: # with POST sub find_first_line_matching_array($\@){ open F, shift or die "could not open: $!"; POST{close F}; while(F){ foreach $w (@{$_[0]}){