On Fri 15 Mar, David H Wild wrote:
> I recently downloaded a Risc OS version of Python. This comes with a
> "front end" program which allows you to type Python commands and returns
> the appropriate action.
> 
> Would it be possible for a similar program to be produced for Perl, please?

I haven't played with Python yet so I'm not sure if this is
what you're after, however, I wrote myself the two attached
Perl programs for testing purposes. They take Perl expressions
and evaluate them. You can even define small subroutines on one
line and then call them in subsequent lines.

They use OS_ReadLine rather than the <STDIN> operator so
that I can use the history and editing features of the line
editor module. EvalLoopS evaluates things in scalar context
and EvalLoopL evaluates them in list context (unless you type
scalar in front, of course). I also have the run action of
Perl files set to run them in a task window for convenience.

Hope that helps.

-- 
James Taylor <[EMAIL PROTECTED]>
Based in Southam, Cheltenham, UK.
PGP key available ID: 3FBE1BF9
Fingerprint: F19D803624ED6FE8 370045159F66FD02

Attachment: EvalLoopS,102
Description: application/riscos

Attachment: EvalLoopL,102
Description: application/riscos

Reply via email to