Redirect data and Filehandle manipulation (STDIN x Disk IO)by mda2 (Hermit)
|on Jun 30, 2005 at 17:29 UTC||Need Help??|
mda2 has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a content filter on Postfix, and need exec antivirus, anti spam and usualy write content to debug, but it's a heavy host and need to reduce disk io.
On my tests seek and tell functions working on STDIN, when exec with redirect, but a question "is it correct or can fail on future" ?
My relevant code:
filter.pl < filter.pl
Code more complex:
My code need this reduce io...
It don't work if called with cat filter.pl | ./filter.pl or input from keyboard.