|
Posted by Ben Morrow on June 10, 2008, 5:53 pm
Please log in for more thread options
>
> It all depends on what the OP meant with "later". I have seen code like
>
> system ("myprog > temp.txt");
> open (TMP, '<', 'temp.txt');
> @result = <TMP>;
I've done this in the past. It was the only way I could find at the time
to get the output of an external process under Win98...
> Here the programmer writes information to a file and later reads it back
> into the program, but unless there are very special circumstances
> probably nobody would call this good code.
...I guess those probably count as 'very special circumstances' :).
Ben
--
I touch the fire and it freezes me, [ben@morrow.me.uk]
I look into it and it's black.
Why can't I feel? My skin should crack and peel---
I want the fire back... BtVS, 'Once More With Feeling'
|