Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Using perl to teach programming

by Falkkin (Chaplain)
on Jan 30, 2001 at 21:39 UTC ( #55289=note: print w/replies, xml ) Need Help??


in reply to Re: Using perl to teach programming
in thread Using perl to teach programming

Thanks... that is a good idea. I think what I might do is this:

Have a @code_lines array keep track of each line of code as the user enters it. This would allow me to implement a save command where the user can save their code to a file for later use. I'd need to pop values off of @code_lines for every undo command.

Have a new subs command that retrieves everything that looks like a subroutine definition from @code_lines and prints out their contents.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://55289]
help
Chatterbox?
[Corion]: Cool. Google makes it easier for me to wean myself off Google Keep. The app now insists on saving items online before displaying them in the offline view.
[Corion]: I should maybe set up a "public" instance of my clone just to manage feature suggestions ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-04-25 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (450 votes). Check out past polls.