Gadzooks!
Sorry
Aristotle, not enough tea this morning. I seem to have somehow stupidly misinterpreted the whole question.
Knom, as
Aristotle has so wisely said, you need to post your code, here is a quick example:
#!/usr/bin/perl
open (PSTEST, "/bin/ps -eaf|");
$i=1;
while (<PSTEST>){
print "Line # ".$i." ".$_;
$i++;
}
close PSTEST;
Martin