> 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>; >
As other already said Embperl treats <FILE> as a HTML tag in the default configuration. There are several ways to solve this: If you are generaly writing in an text editor set the optRawInput option in your httpd.conf. This avoids other trouble as well. The default assumes you are writing in an HTML editor, which would had written <FILE> in your file, which is the second possibility. Addtionaly \<FILE> will also work and you can set optRawInput inside your page by putting [- $optRawInput = 1 -] in an extra block before your <FILE>. Again if you use a text editor for writing the best is to set the optRawInput Flag in the EMBPERL_OPTIONS in your httpd.conf. Gerald P.S. $escmode will not work, because $escmode is responsible for escaping the your output and not the parser ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
