Re: Equivalent to BASIC's OSCLI?
[email protected] (Roger Horne) Tue, 19 Mar 2002 20:06:57 +0000 (GMT)
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <Marcel-1.53-0319200657-b49Wr#[email protected]> |
On Tue 19 Mar, Richard Torrens (RiscOS) wrote: > > How does one pass a command from Perl to the CLI? > > There appears to be nothing in the docs about * commands, or OSCLI, or CLI! Is "system" what you want? Before I realised there was a rather easier and better way to do it I was using in one script something like my $feeble=join '' , 'set CPRdir$Path ' , $inpath , 'work/'; # local Acorn FS conversion $feeble=~tr[\.\/][\/\.]; system $feeble; unshift @INC , '/CPRdir:'; which seemed to work... (You can see from the choice of name that I was not exactly happy with it...) Roger -- Roger Horne 11 New Square, Lincoln's Inn, London WC2A 3QB mailto:[email protected] http://www.hrothgar.co.uk/