in reply to Re^4: Moose reading file line by line
in thread Moose reading big file line by line
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); };
|
|---|