[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT] Re: Problems with a tiny little module



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Rui,

	You can use portuguese in -devel-portuguese, that's
one of the reasons why this list exists. :)


Rui Fernandes wrote:
:: Hi there,
:: I've downloaded the Module HTTP::CheckUser from CPAN,
:: and try to use it, at first, the way that is in the
:: example. I received the following error message:
:: Can't locate object method "init_header" via package
:: "HTTP::Headers" at C:/Perl/lib/HTTP/Message.pm line 172.

	Looking at that "C:" I can't see how it has anything
to do with Debian and -devel-portuguese. Looks like that
your "perl setup" was unable to locate 'init_header'.

	You should take a look at Messame.pm on line 172 and
the programming context and try to figure out what is going
on.


[ I tried to organize the 'one-line-code'
:: The code I made is like this:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(escape);
use LWP::Simple;
use HTTP::CheckProxy;

print "Content-type: text/html\n\n";
$ip ="148.240.241.67";
my $open_proxy_test = HTTP::CheckProxy->new($ip);
print "proxy test for $ip returns ".$open_proxy_test->code."\n";
print ($open_proxy_test->guilty? "guilty" : "innocent");


:: What can be wrong? Kind regards,

	Looks like nothing... you should check the perl
setup and other modules. BTW, this subject is totally
off-topic to this maillist. :-)

	Thanks,

- --
//////////
// Felipe Augusto van de Wiel (faw) <felipe@cathedrallabs.org>
// GUD-PR / DUG-PR || http://www.debian-pr.org
// GUD-BR / DUG-BR || http://www.debian-br.org
// Debian Project  || http://www.debian.org/
//////////
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFCRv7nCjAO0JDlykYRAoALAJ0ctVuV+HNvmlL4cqzub8tHINSaYgCfd2Zx
4lGec8vqSZBw8BlwtbSjGRc=
=B7B4
-----END PGP SIGNATURE-----



Reply to: