私がやりたいのは、ウィンドウを閉じるためのボタン (button_window) だけでなく、関数 (user_info) を呼び出すことです。
my $btn = $main -> Button (-text => 'Start',
-command => sub {$button_window -> destroy},
-command => \&user_info)
-> pack ();
最後のコマンドのみを実行します よろしくお願いします
私がやりたいのは、ウィンドウを閉じるためのボタン (button_window) だけでなく、関数 (user_info) を呼び出すことです。
my $btn = $main -> Button (-text => 'Start',
-command => sub {$button_window -> destroy},
-command => \&user_info)
-> pack ();
最後のコマンドのみを実行します よろしくお願いします