Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Can't call method "uri" on an undefined value

Reply
Thread Tools

Can't call method "uri" on an undefined value

 
 
chad phillips
Guest
Posts: n/a
 
      09-15-2003
I am trying to get Auth::Cookie to work and keep getting this error?

Can't call method "uri" on an undefined value at /path/login.pl line
6.

This is on a solaris box, with Apache 1.3.28.

The code is pretty straight forward:
#!/usr/bin/perl

use CGI qw(:standard :html3);
my $r = Apache->request;
$r->status(200);
my $uri = $r->prev->uri;

print redirect("http://mydomain.org/cgi-bin/askforsurvey.pl?uri=$uri");

This same script works just fine on my test machine, but not on my
production box. My guess is that something in the environment/apache
compile is different. Does anyone have any pointers as to where I
should look to fix this problem?

thanks
chad
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined method `call' for nil:NilClass (NoMethodError) Iain Barnett Ruby 2 07-20-2010 02:01 PM
HELP - Spreadsheet::ParseExce - Can't call method "value" on anundefined value perl Newbie Perl Misc 5 05-06-2009 09:44 AM
Help using Spreadsheet::ParseExcel Module - Can't call method "value"on an undefined value perl Newbie Perl Misc 2 05-06-2009 09:43 AM
Cant' call method "EOF" on an undefined value... Marc Baker Perl Misc 2 01-19-2006 09:58 AM
ExpatXS: 'Can't call method "read" on an undefined value' after ca.500 XML files Arvin Portlock Perl Misc 18 01-18-2006 01:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57