Forum Moderators: coopster & phranque

Message Too Old, No Replies

Software error: Can't locate object method "get"

         

Acternaweb

5:10 pm on Aug 13, 2001 (gmt 0)

10+ Year Member



I am getting the following error while trying to run a password protection script. Any ideas on how to resolve it? I tried to chage "get" to "post" but it did not work.

Content-type: text/html
Software error:
Can't locate object method "get" via package "url" at "path" line 263.
For help, please send mail to the webmaster (webmaster), giving this error message and the time and date of the error.

sugarkane

12:15 pm on Aug 14, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This will be a problem with a Perl module - the script is trying to access a part of that module which doesn't exist.

What 'use' or 'require' lines do you have at the top of the script?

It's next to impossible to guess what the problem is without more info, but you could try looking for a line something like:

$foo=url->get();

Is there anything like that in your script?

Acternaweb

3:29 pm on Aug 14, 2001 (gmt 0)

10+ Year Member



Does this help?

sub GetWebPage {
use LWP::Simple;
$url = "http://$server$document";
$html = get $url;

also am getting this error message now:

[Tue Aug 14 08:30:33 2001] Simple.pm: Can't locate LWP/Simple.pm in @INC (@INC

littleman

3:54 pm on Aug 14, 2001 (gmt 0)



Looks like you don't have LWP installed.