in reply to formatting STDOUT
it's not the most efficient aproach, but it's bullet proof. It will catch any output, generated from perl, from C libraries or even from external commands called via system.select STDOUT; $|=1; unless (open STDOUT, '|-') { eval { while(<>) { print scalar(localtime), $_; } }; exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: formatting STDOUT
by Anonymous Monk on May 31, 2005 at 14:31 UTC | |
|
Re^2: formatting STDOUT
by zentara (Cardinal) on May 31, 2005 at 19:15 UTC | |
by salva (Canon) on May 31, 2005 at 20:14 UTC |