Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = tkinit; my $menubar = $mw->Menu(-type => 'menubar'); $mw->configure(-menu => $menubar); my $text1 = 'File'; my $text2 = 'Open file'; my $text3 = 'Save as'; my $menu = $menubar->cascade(-label => $text1); $menu->command(-label => $text2); $menu->command(-label => $text3); MainLoop; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl TK strange case
by stefbv (Priest) on Dec 17, 2009 at 12:22 UTC | |
|
Re: perl TK strange case
by Kirsle (Pilgrim) on Dec 18, 2009 at 00:10 UTC |