The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use blib;
use Tk;
my $mw = MainWindow->new;
my $kind = shift;
require "Tk/$kind.pm";
my $w = $mw->$kind();
if ($w->isa('Tk::Wm'))
 {
  $w->deiconify;
 }
else
 {
  $w->pack;
 }
$mw->update;
$mw->after(1000);
$mw->after(5000,[destroy => $mw]);
MainLoop;