[Zope-Perl] Perl accessing a text file

Svendsen_Scott_E@ssmhc.com Svendsen_Scott_E@ssmhc.com
Mon, 9 Sep 2002 12:05:04 -0500



Dumb question but it has been so long since using Zope I have forgotten
some basics.

I have Perl running under zope fine. THe issue is when I try to open a text
file.

I am running under Win2k and have Perl installed (interesting I know).

I have t wo files called:

test.pl
t.txt

under  Zope/cgi-bin

The code for my test.pl is:

print "Content-type: text/html\n\n";
print "<html><body>\n";

open (IN, "t.txt");
@lines = <IN>;
close IN;



foreach (@lines)
{
     chomp($_);
     print "<b>$_</b><br>\n";

}

print "</body></html>\n";


Under a dos window when I run it it will spit out everything in the t.txt.

However when I run it under Zope it won't process anything.  After some
debugging I know what is happening.  The Perl file under Zope is not
opening the text file and reading anything.

ANyone have any ideas as to why?

Thanks




Scott E. Svendsen
IT: Web Integration Project Lead
608-827-4211