in reply to dereferencing file handles
See the section labelled WARNING in perlobj for details. As for solutions, you can use the one that you stumbled on of putting the filehandle into a scalar, the block syntax suggested by another person which looks like:
Or you can take a speed hit and use IO::Handle and thenprint {$self->{_handle}} "string here";
Note that the last causes a speed hit, and its internal implementation causes some issues that tye has a complex fix for.$self->{_handle}->print("string here");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: dereferencing file handles
by Ryszard (Priest) on Sep 04, 2001 at 03:06 UTC |