Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question

Status
Not open for further replies.

mmaz

Programmer
Nov 22, 2000
347
Hi there,

Please look at the code below:

#!/usr/bin/perl

#use CGI::Carp qw(fatalsToBrowser);
use strict;

BEGIN {
use Cwd;
}
BEGIN {
my $directory = cwd;
unshift @INC,$directory;
unshift @INC,".";

}

use BAC::Common::Modules::Common;
use BAC::CommunityMembers::Modules::Login;
$BAC::pROGRAM_NAME = "login.cgi";
&BAC::CommunityMembers::Modules::Login::Init();


1- Why do I get an internal server error when I comment the last two lines?

2- How can I print Cwd?

Thanks,

Marie
 
solved my problem. I still don't know why I was getting an error, but I printed cwd using getcwd()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top