Re: RISCOS "free" system call

[email protected] (Raf) Fri, 17 Jan 2003 13:50:54 +0000 (GMT)
Newsgroups perl.riscos
Message-ID <[email protected]>
On Fri, 17 Jan 2003, Phillip Marsden wrote:

> 1. Is it possible to return the screen output to the webpage?
> 2. Could anyone show me the way to do this with Perl modules? I assume that
> there are file-handling and disk-handling functions for RISC OS in these
> modules.
>
As a guess, something like the following should do it:

open (WEBOUT, ">&STDOUT");
open (STDOUT, "|your_free_stuff");
## whatever
close STDOUT;
open (STDOUT, ">&WEBOUT");
close WEBOUT;

## continue as normal


Cheers,

Rafiq