in reply to simple IPC needed
use Tk; my $mw = MainWindow->new(); $mw->send('Foo' => $file_name);
use Tk; my $main_window = MainWindow->new(-title => 'My other prog'); $main_window->appname('Foo'); MainLoop; sub Tk::Receive{ shift; my $string = shift; if ($string =~ /pattern/){ # Do somthing. } else { die 'Wrong arg Received'} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: simple IPC needed
by redss (Monk) on Feb 18, 2005 at 13:21 UTC | |
|
Re^2: simple IPC needed
by redss (Monk) on Feb 18, 2005 at 16:06 UTC | |
by lidden (Curate) on Feb 19, 2005 at 12:54 UTC |