in reply to Can't call method "readystate" on an undefined value at C:/Perl/site/lib/Win32/IEAutomation.pm line 562

Wow, that is a giant blob of ugliness.

In the future, please put your script code within code tags.

In the IEAutomation code, it looks like readystate is used in the following subs

sub WaitforDone{ my $self = shift; my $agent = $self->{agent}; while ($agent->Busy || $agent->document->readystate ne "complete") +{ sleep 1; } } sub WaitforDocumentComplete{ my $self = shift; my $agent = $self->{agent}; while ($agent->document->readystate ne "complete"){ sleep 1; } }

What is your code for using WaitforDone or WaitforDocumentComplete? Are you passing a var with an undefined value? It sounds like it.
  • Comment on Re: Can't call method "readystate" on an undefined value at C:/Perl/site/lib/Win32/IEAutomation.pm line 562
  • Download Code