Yes, and I think that gives us *two* reasons to always explicitly close
filehandles. :-)

David

On Sun, Jul 16, 2017 at 8:00 AM, Shawn H Corey <shawnhco...@gmail.com>
wrote:

> On Sun, 16 Jul 2017 07:36:39 -0400
> David Mertens <dcmertens.p...@gmail.com> wrote:
>
> > Also note that lexical filehandles close when they go out of scope
>
> True but you should always explicitly close your files. This gives you
> a chance to report any errors it had, have rather than silently
> ignoring them.
>
>
> --
> Don't stop where the ink does.
>
>         Shawn H Corey
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

Reply via email to