in reply to formatting STDOUT
open( CMD, "mycmd arguments wubba |" ) or die "Can't open pipe from my +cmd: $!\n"; while( <CMD> ) { print scalar localtime, ": ", $_; } close( CMD );
If you need fancier you might want to look at IPC::Run or the like.
--
We're looking for people in ATL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: formatting STDOUT
by Anonymous Monk on May 31, 2005 at 14:20 UTC |