in reply to Perl Bug?

Please ignore, this is utter nonsense.
Thanks to Aristotle for quickly pointing this out, please read my sensible reply.

Knom,

Perhaps you want to use system or exec rather than open.

Hope this helps.


Martin

Replies are listed 'Best First'.
Re^2: Perl Bug?
by Aristotle (Chancellor) on Nov 18, 2005 at 10:24 UTC

    How? Those will not let him capture output, will they?

    Makeshifts last the longest.

      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