[EMAIL PROTECTED] (Differentiated Software Solutions Pvt. Ltd) wrote:
>We corrected R to r. Problem still remains.
>We ran this program as a standalone perl program and even this bombs. Code
>as follows.
>
>#!/usr/bin/perl
>my $r;
>use Apache ();
>
>Apache->request($r);
>
>$r->internal_redirect('hello.html');
>
>Error message : Can't locate object method "request" via package "Apache" at
>../test1.pl line 5.
As others have mentioned, you can't run this code standalone without
using some tricks (though they're not very tricky). But you've got a
different problem. According to your code, $r is never assigned to, so
it should fail with a different error than you're seeing anyway. You
want something like this:
#!/usr/bin/perl
use Apache ();
my $r = Apache->request;
$r->internal_redirect('/path/to/hello.html');
------------------- -------------------
Ken Williams Last Bastion of Euclidity
[EMAIL PROTECTED] The Math Forum