|
Bill,
I think it has something to do with Embperl parsing the "
<FILE> ".
I am sure that I saw something about this in a post in the
last few months. I will have a look further if I get a chance.
IAN
>>> "Bill OConnor" <[EMAIL PROTECTED]> 13/12/2001 8:57:45 am >>> Installed Embperl on Solaris 5.7 Apache 1.3.19 with File::Spec .8 (the latest File::Spec). I can get a script to write a file but read never seems to happen. open (FILE, "/tmp/emb.txt") || die "open failed $!"; $line = <FILE>; return $line; I get an error with $line = <FILE>; "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@ and inform them of the time the error occurred, and anything you might have done that may have caused the error. [22985]ERR: 24: Error in Perl code: syntax error at index.epl line 32, at EOF [22985]ERR: 24: Error in Perl code: Undefined subroutine &HTML::Embperl::DOC::_1::get_datablock called at index.epl line 109. Apache/1.3.19 (Unix) mod_perl/1.25 HTML::Embperl 1.3.4 [Wed Dec 12 13:53:24 2001]" The <FILE> always seems to be at EOF or something but open always works. The file permissions are ok, the file is not empty and this works fine in perl. Other things I do with Embperl seem to work. Anybody know what gives? Bill --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Cannor read file from Embperl Bill OConnor
- Re: Cannor read file from Embperl Gerald Richter
- Ian Van Der Poel
