hi,
>
> I'm using mod_perl 1.24 and Embperl 1.2.1 and I'd like to know if
> using  construct like
>
> {
> local $/ = undef;
> $filecontents = <$fdat{file}>;
> }
>
> is supported/supposed to work. Reading the man pages, it seems that the
> 'official' way is to take the "binary clean" path and use read(). But
> I'm lazy, and old vices are hard to give up. I'm used to the <> readline
> shortcut for text files, and I'd still like to use it.
>

I didn't have tested it, but it should work. (You have to set optRawInput,
as always when you use the <> operator, or write &lt; &gt; instead).

The reason why the docs use the read function is, that you may run into
memory problems when you often upload big files, because everything is
loaded into memory, while the example in the docs, only read 32K at a time.

Gerald

-------------------------------------------------------------
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 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to