Loading ...
Sorry, an error occurred while loading the content.

RE: Calling $Response->Write

Expand Messages
  • John Drago
    I recommend you take a look at the program named asp-perl that is part of the Apache::ASP distribution, as well as looking at the Standalone CGI Mode,
    Message 1 of 9 , Apr 10, 2006
    • 0 Attachment
      I recommend you take a look at the program named "asp-perl" that is part
      of the Apache::ASP distribution, as well as looking at the "Standalone
      CGI Mode, without mod_perl" documentation at
      http://www.apache-asp.org/cgi.html

      Keep in mind you're using Apache::ASP in a setting it wasn't designed
      for, so you will have to expect unexpected results.




      > -----Original Message-----
      > From: savimonty [mailto:savimonty@...]
      > Sent: Monday, April 10, 2006 7:49 AM
      > To: asp@...
      > Subject: Re: Calling $Response->Write
      >
      >
      > Hey thanks,
      >
      > We are getting there .... THANKS A LOT ...
      >
      > But i am facing an error .... Guess you can guide me ...!!
      >
      > Well here is the input file .... !!
      >
      > ######### [ INPUT ] #########
      > # input.pl
      >
      > use Apache::ASP;
      > use CGI;
      > my $r = new CGI;
      > my $asp = Apache::ASP->new($r);
      > my $Response = $asp->{Response};
      > $Response->Write("Hello, World!");
      >
      > #########################
      >
      > $perl input.pl
      >
      > ############## [ ERROR ] ##########
      > Undefined subroutine CGI::filename
      > at /usr/share/perl5/Apache/ASP.pm line 260
      > at /usr/share/perl/5.8/CGI.pm line 818
      > CGI::_compile called at /usr/share/perl/5.8/CGI.pm line 782
      > CGI::AUTOLOAD('CGI=HASH(0x8151c28)') called at
      > /usr/share/perl5/Apache/ASP.pm line 260
      > Apache::ASP::new('Apache::ASP', 'CGI=HASH(0x8151c28)') called
      at
      > ASP.pl line 4
      > #################
      >
      > Thanks a lot .... i tried to use perl5.8.8 also ... but in vain..!!
      >
      > Thanks again....we are almost there ... !!
      >
      > Regards,
      > Savio
      > --
      > View this message in context:
      http://www.nabble.com/Calling-%24Response-
      > %3EWrite-from-perl-t1410025.html#a3842147
      > Sent from the Apache - Asp forum at Nabble.com.
      >
      >
      > ---------------------------------------------------------------------
      > To unsubscribe, e-mail: asp-unsubscribe@...
      > For additional commands, e-mail: asp-help@...
      >


      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • savimonty
      Joshua Chamas wrote ... ... Where am I to place this snippet...? Well, I need to clarify this further ... I agree that I have to fake ... but I do not want to
      Message 2 of 9 , Apr 14, 2006
      • 0 Attachment
        Joshua Chamas wrote ...

        >If you want more fine grain control, you can look into how it executes,
        >and the core of this is:
        >
        >$r = Apache::ASP::CGI->init($file, @script_args);
        >$0 = $file; # might need real $0 in $Config
        >eval $Config;
        >$@ && die("can't eval config error: $@");
        >$r->dir_config->set('NoState', 0) if $opt_s;
        >...
        >&Apache::ASP::handler($r);

        Where am I to place this snippet...?

        Well, I need to clarify this further ... I agree that I have to fake ... but
        I do not want to execute asp files here!
        I want to simply use the asp-perl objects as a simple perl code.

        I hope I am making this clearer ...
        Thanks.

        Regards,
        Savio
        --
        View this message in context: http://www.nabble.com/Calling-%24Response-%3EWrite-from-perl-t1410025.html#a3915167
        Sent from the Apache - Asp forum at Nabble.com.


        ---------------------------------------------------------------------
        To unsubscribe, e-mail: asp-unsubscribe@...
        For additional commands, e-mail: asp-help@...
      Your message has been successfully submitted and would be delivered to recipients shortly.