in reply to Re^2: Yet another Can't locate object method question
in thread Yet another Can't locate object method question

Thank you for your answer and solution. It works of course, but one thing is not clear to me: $self->{fh} seems to pop out of nowhere. Is it a filehandle which is immediately bound to $self?
  • Comment on Re^3: Yet another Can't locate object method question

Replies are listed 'Best First'.
Re^4: Yet another Can't locate object method question
by choroba (Cardinal) on Mar 17, 2012 at 08:07 UTC
    From where do you think OUT pops out in
    open OUT, '<', $file;
    $self is a hash ref, $self->{fh} does not exist, so it is created by Perl when calling open, and the filehandle is assigned to it.
      Clear now :). Thanks.