
7th April 2006, 07:48
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Calling $Response->Write from perl
Hi,
I need to know how to call ASP Object calls from a perl script.
for eg:
I tried the following ...
# trial.pl
use Apache::ASP::Response;
$Response = Apache::ASP::Response;
$Response->Write("Hello World");
#This should print Hello World on the console...!!
This is what i precisely want to do ...
I am sure I am making a mistake somewhere ... guide me with this.
Thanks a milliion
Savio.
Last edited by savimonty; 7th April 2006 at 07:54.
|

7th April 2006, 07:58
|
|
Senior Member
|
|
Join Date: Feb 2006
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Couldnt say it better my self
|

7th April 2006, 08:02
|
|
Senior Member
|
|
Join Date: Feb 2006
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|

7th April 2006, 08:05
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
did not help ...
Hi,
Thanks for the reply ... but this is not the problem I am facing....
I am not trying to run a CGI script!
I am trying to use the Apache::ASP library which is written completely in perl.
So, I want to use this library to run ASP Object calls from another perl script file
For example, consider a perl file : call_Response.pl
######################################
# call_Response.pl
#####################################
# Creating the $Response object
use Apache::ASP::Response; ### i think i am garbling here....
$Response = Apache::ASP::Response; ### here too
$Response->Write("Hello World"); #Prints "Hello World" on the console
## Now this is not just for the $Response Object .... I will need to call other objects also.
## Like the $Server and the $Session object calls.
###################################
Now at the prompt I should get the following
$perl call_Response.pl
Hello World
I hope this fine-tunes the problem.
Thanks.
Savio
Last edited by savimonty; 7th April 2006 at 08:12.
|

7th April 2006, 12:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Do you find any errors in the logs?
|

7th April 2006, 17:03
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The error I see ...
$perl call_Response.pl
############ ERROR ###############
Undefined subroutine &Apache::ASP::config called at /usr/share/perl5/Apache/ASP/Response.pm line 467
###################################
.... where Response.pm is a asp-perl package containing the method write() and the other methods.
config() is already referenced explicitly in the file Response.pm
So, I do not understand why this is a problem!
Also when I write an ASP scripted in perl and run it using the command asp-perl trial.asp
It works just fine ...
But if I use a normal perl script (NOT asp-perl) to call these methods... it gives me this error.
If necessary I will attach the Response.pm file here. ...
I feel I am making a minor error in declaring the object, $Response.
If so I need to know the correct syntax.
Well, Hope to get a solution to this....!!
Thanks,
Savio.
Last edited by savimonty; 7th April 2006 at 17:14.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 02:57.
|
Recent comments
18 hours 25 min ago
23 hours 40 min ago
23 hours 51 min ago
23 hours 59 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 5 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago