in reply to filehandler stored in hash-ref
$self->{out} is the filehandle mentioned in my first post. Unfortunatly this generates the followingsub DESTROY { my $self = shift ; if ( $self->{out} && $self->{out}->opened() ) { ... do stuff .... close $self->{out} ; } }
So the question is how do I test if a filehandle is open ?(in cleanup) Can't locate object method "opened" via package "IO::Hand +le" at modules/MyTH.pm line 29.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: filehandler stored in hash-ref
by ikegami (Patriarch) on Dec 10, 2009 at 16:26 UTC | |
by jeanluca (Deacon) on Dec 10, 2009 at 16:58 UTC | |
by ikegami (Patriarch) on Dec 10, 2009 at 17:04 UTC | |
by kyle (Abbot) on Dec 10, 2009 at 17:05 UTC | |
by jeanluca (Deacon) on Dec 10, 2009 at 17:22 UTC |