I would simply use whatever Moose allows as getters and setters and use the setter to store the filehandle:
sub openHandler { open my $fh, '<', $filename or die "$filename: $!"; $self->set_filehandle($fh); };
In reply to Re^5: Moose reading file line by line
by Corion
in thread Moose reading big file line by line
by learning.moose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |