Re: Problems with Apache 2.0, mod_perl2 and perl



John Bokma wrote:

print "Content-type: text/plain\n\n";

unless ( open my $fh, "/path/to/CGI.pm" ) {

print "Can't open CGI.pm for reading: $!\n";
exit;
}

print "Could open CGI.pm for reading\n";


# cat ./helloworld.cgi
#!/usr/bin/perl_static -wT
##

#require CGI::Lite;

print "Content-type: text/html\n\n";
#print "Hello, World.";

unless ( open my $fh, "/usr/lib/perl5/5.8.8/CGI.pm" ) {

print "Can't open CGI.pm for reading: $!\n";
exit;
}

print "Could open CGI.pm for reading\n";

# ./helloworld.cgi
Content-type: text/html

Could open CGI.pm for reading

http://localhost/cgi-bin/helloworld.cgi
Can't open CGI.pm for reading: 13

.



Relevant Pages

  • Re: Can and bogg problem re-visited
    ... A friend has a Cutler 1000 kit on a King Cat and converted the Cutler ... can to exit in the ski well. ... Arctic Cat does have a can that exits just like the M series do. ...
    (rec.sport.snowmobiles)
  • Re: So lost... Need help
    ... I think I'm going to go in a different direction w/ this perl script so ... Thanks for reading. ... Name" is a header): ...
    (perl.beginners)
  • Re: Full Screen Mode
    ... Word 2007's reading view - though frankly I much prefer the Print ... I don't want any menus or scroll bars; ... I don't want to see the button to press to exit full screen mode. ... thing possible in any word processor? ...
    (microsoft.public.word.docmanagement)
  • Re: Freebsd Theme Song
    ... # ode to your favorite FreeBSD pet peeve. ... " exit 1 fi ... cat "/COPYRIGHT" ... ---where 'foo' is a description of your pet peeve ...
    (freebsd-questions)
  • Re: Guestbook with slight scripting problem
    ... You could check end of stream every time before reading next line: ... if gbfile.AtEndOfStream then exit do ... gbentry = gbfile.readline ... > Yes, Vassiliev, you're right. ...
    (microsoft.public.scripting.vbscript)