Hi, Monks, My question is about perl interactive shell and GUI. I wrote a perl script with TK. Once Gui up, I can do many things through click the buttons, or menus. But now, the buttons and menus become more and more. So I want to create a shell for the script. I can type the cmd in the shell, and then do the same thing as click in GUI. I can use this to create a shell simply: while (defined ($_= $psh_term->readline($psh_cmd ? "pa_shell >> " : "pa_shell $num_cmd> "))) { But, how can I create a shell like that with a MainWindow opened by: my $mw = MainWindow->new; So, once I type cmd in the shell, something can happen in the $mw as I click the button in it. Thanks,
In reply to perl interactive shell, and GUI by Zejian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |