Re: RISCOS "free" system call

[email protected] (Iain 'Spoon' Truskett) Fri, 17 Jan 2003 20:14:57 +1100
Newsgroups perl.riscos
Message-ID <[email protected]>
* Phillip Marsden ([email protected]) [17 Jan 2003 20:09]:
> Apologies if this has been covered before, but I am a new subscriber,
> and have not yet got all the FAQ etc.

> I wish to get the amount of free space on a floppy for a copy program
> which is working from a web page. Not having used Perl modules, I
> decided to use the RISC OS "free" command via the system function.

Without delving into the Acorn specific modules:

my $free = `free`; # note the backticks.

This puts the output of the free command into the variable $free.

Perhaps check out perlintro on perldoc.com or pick up a copy of
"Learning Perl"?


cheers,
-- 
Iain.