There's more than one way to do things | |
PerlMonks |
Re: Key-Board Interactive Perl Applicationby zentara (Archbishop) |
on Dec 12, 2012 at 11:28 UTC ( [id://1008488]=note: print w/replies, xml ) | Need Help?? |
It smells like a homework assignment to me, but here are some things you will need to consider. First, in order to have your program be both responsive to key entries, and at the same time be running other subroutines, you will need to use fork or threads. Second, if you want to enter data like AB<ENTER>, you will be looking for readline routines, not readkey routines. Readline waits for an <ENTER> before sending it to STDIN. Here are a few basic examples. There are many other event systems besides Glib, but I prefer it.
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|