in reply to tripping over filehandle / subroutine usage

> Do filehandles get auto-closed when they are passed to a subroutine and the subroutine returns?

no!

> (this is probably really basic, but somehow I have never encountered it before).

and we can't tell what you're doing ... because you don't provide much reproducible code. :)

> What is happening here?

You have a bug in the code you're hiding from us! ¹

Cheers Rolf

¹) (X-Lan activating his magical psy abilities to read foreign harddisks =)

  • Comment on Re: tripping over filehandle / subroutine usage