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); }
In reply to Re: formatting STDOUT
by salva
in thread formatting STDOUT
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |