in reply to Re: How to open() something in a hash?
in thread How to open() something in a hash?

Alternatives to
my $fh = $self->{fh}; print $fh "Hello world\n";
are
print { $self->{fh} } "Hello world\n";
and
use IO::Handle qw( ); $self->{fh}->print("Hello world\n");