in reply to Perl What for?
Hi NoobiePerlist,
As I know from the CB that you are using Windows and ActiveState Perl, you might like to try this. Cut and paste the first program below into Notepad and save it as play.pl
#!perl -w $|++;$,=' '; print $/,'perl> '; eval($_) || print $@,$/ and print $/,'perl> ' while(<>);
Then open a CMD window and type "perl play.pl". You end up with a prompt that looks like this perl>. This will allow you to try out simple perl programs easily, and if you make a mistake, you can use the arrow keys to retrieve the line and edit it before trying again.
I've pasted a short example session below. Have fun!
C:\test>perl play.pl perl> print 'hello world!' hello world! perl> $x = 100 perl> $y = 10 perl> print $x/$y 10 perl> print $_, "\n" for 1 .. 10 1 2 3 4 5 6 7 8 9 10 perl>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl What for?
by Django (Pilgrim) on Sep 08, 2002 at 12:25 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2002 at 16:26 UTC | |
|
Re^2: Perl What for?
by Aristotle (Chancellor) on Sep 08, 2002 at 12:54 UTC | |
by Django (Pilgrim) on Sep 08, 2002 at 13:12 UTC | |
by Aristotle (Chancellor) on Sep 08, 2002 at 13:19 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2002 at 16:36 UTC | |
by Aristotle (Chancellor) on Sep 08, 2002 at 17:06 UTC |