From Svendsen_Scott_E@ssmhc.com Mon Sep 9 18:05:04 2002 From: Svendsen_Scott_E@ssmhc.com (Svendsen_Scott_E@ssmhc.com) Date: Mon, 9 Sep 2002 12:05:04 -0500 Subject: [Zope-Perl] Perl accessing a text file Message-ID: 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 "\n"; open (IN, "t.txt"); @lines = ; close IN; foreach (@lines) { chomp($_); print "$_
\n"; } print "\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 From TGERMAINE@UPei.CA Tue Sep 10 17:13:34 2002 From: TGERMAINE@UPei.CA (TGERMAINE@UPei.CA) Date: Tue, 10 Sep 2002 13:13:34 -0300 Subject: [Zope-Perl] Zope-perl digest, Vol 1 #142 - 1 msg Message-ID: <6267653988@acad1.cs.upei.ca> I am away on vacation until Sept 16. If your inquiry is urgent please resend your request to Chris Martin (cmartin@upei.ca) and he will look after it. Alternatively, you can call Chris at 566-0604 Tom Germaine Access Services Administrator From youenn.boussard@citb.bull.net Tue Sep 10 17:42:19 2002 From: youenn.boussard@citb.bull.net (youenn) Date: Tue, 10 Sep 2002 18:42:19 +0200 Subject: [Zope-Perl] pbt for install Python-Object Message-ID: <20020910184219.1188c320.youenn.boussard@citb.bull.net> Hello, I am trying to install pyperl-1.0.1 . I have python 2.1 + perl v5.6.1 When I compile I have this error [root@youenn Python-Object]# make cc -c -I"/usr/include/python2.1" -fno-strict-aliasing -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fpic -I/usr/lib/perl5/5.6.1/i386-linux/CORE -DMULTI_PERL Object.c In file included from Object.xs:10: ../lang_lock.h:67: parse error before `last_py_tstate' ../lang_lock.h:67: warning: data definition has no type or storage class make: *** [Object.o] Erreur 1 Thanks youenn -------------------------------------------------------------------------------------------------------- (O__ Youenn Boussard .~. //\ y.boussard@citb.bull.net /V\ // ) Bull Bordeaux // \\ V__/_ 05.56.43.78.38 /( )\ ^'~'^ -------------------------------------------------------------------------------------------------------- ********* "The software said 'runs on Win95 or better,' so I installed it on Linux" From TGERMAINE@UPei.CA Wed Sep 11 17:11:23 2002 From: TGERMAINE@UPei.CA (TGERMAINE@UPei.CA) Date: Wed, 11 Sep 2002 13:11:23 -0300 Subject: [Zope-Perl] Zope-perl digest, Vol 1 #143 - 2 msgs Message-ID: <7A5F6E00CF@acad1.cs.upei.ca> I am away on vacation until Sept 16. If your inquiry is urgent please resend your request to Chris Martin (cmartin@upei.ca) and he will look after it. Alternatively, you can call Chris at 566-0604 Tom Germaine Access Services Administrator