eweaverp has asked for the wisdom of the Perl Monks concerning the following question:
It would be convenient for me to be able to interrupt a Perl script by pressing some key, which would pause execution and let me modify a few variable via a subroutine, and then resume execution... that is, pass in parameters on the fly, like a 'mainloop' would allow for a GUI system.
All the simple ways I can think of to do this are pretty kludgy (i.e. a seperate script that modifies a file that gets periodically checked, etc.). Would pipes be involved?
Ideally I would like to avoid forks... I could make a forking system work for my application, but it would be overkill and wouldn't generalize well.
Anybody have suggestions? Simpler is always better!
Thanks
~evan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GUI-like behavior
by jdporter (Paladin) on Jul 17, 2003 at 18:46 UTC | |
|
Re: GUI-like behavior (vague)
by tye (Sage) on Jul 17, 2003 at 19:15 UTC | |
|
Re: GUI-like behavior
by simonm (Vicar) on Jul 17, 2003 at 19:23 UTC | |
|
Re: GUI-like behavior
by BrowserUk (Patriarch) on Jul 17, 2003 at 23:51 UTC | |
|
Re: GUI-like behavior
by eweaverp (Scribe) on Jul 17, 2003 at 18:44 UTC | |
by jdporter (Paladin) on Jul 18, 2003 at 14:35 UTC |