Re: Front end for Perl

[email protected] ("Rafiq Ismail (ADMIN)") Sat, 16 Mar 2002 18:36:58 +0000 (GMT)
Newsgroups perl.riscos
Message-ID <[email protected]>
I've always used perl -de 0 to set up a debugger session in interactive
mode, under linux.  Unfortunately, I never got around to setting perl up
on my archie, so I'm not sure if this will work for you.  The debugger
becomes an interpreter through which you may then test out blocks of code
at the command line.  You can include modules, whatever.  If you haven't
played with it, it's also a useful tool through which to trace through
your code ;)  I'm sure that you'll probably get the debugger under some
guise with the risc-os version.

Good luck.
fiq


On Sat, 16 Mar 2002, James Taylor wrote:

> 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
>