Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Yet another Can't locate object method question

by nemesdani (Friar)
on Mar 17, 2012 at 06:23 UTC ( #960133=note: print w/replies, xml ) Need Help??


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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960133]
help
Chatterbox?
[trahulprajapati]: hi
[Eily]: hello trahulprajapati
[trahulprajapati]: how can i use javascript in WWW::Machanize for login to a webpage?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-06-22 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (523 votes). Check out past polls.