in reply to Re: (Ovid) Re: Using File Reference
in thread Using File Reference

Add a use warnings pragma to your program and you'll see that the file handle, Test::F, is not open at the time you try to write to it.

It is closing automatically as it goes out of scope. I think what you want is just a typeglob, not a reference to it. Simply remove the \ from before the typeglob and all is fine.

$self->{destFile} = *F;
Cheers,

- danboo