st_possenti has asked for the wisdom of the Perl Monks concerning the following question:
Thank You#!/usr/bin/perl -w use Tk; use warnings; use diagnostics; use strict; my $text; my $mw = MainWindow->new; $mw->title("PerlRun"); $text = $mw->Text(-height => 1, -width => 15)->pack(-anchor => 'nw', -side => 'top'); $mw->Button(-text => " Run ", -command => [ \&runprog ]) ->pack(-side => 'left', -anchor => 'sw'); $mw->Button(-text => "Done", -command => sub { exit }) ->pack(-side => 'left', -anchor => 'sw'); sub runprog { system "\$text"; exit; } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Tk run program
by JamesNC (Chaplain) on Jul 29, 2003 at 03:20 UTC | |
by st_possenti (Monk) on Jul 29, 2003 at 03:39 UTC | |
by JamesNC (Chaplain) on Jul 29, 2003 at 04:16 UTC | |
by st_possenti (Monk) on Jul 30, 2003 at 00:31 UTC |