system, Capture::Tiny, Proc::Background, system_detached

sub gen_rslt { if( $filepath ){ system $pathtobatchfile, '--first', $filepath; } else { $mw->MsgBox( -detail => "select path first", -title => "select +path first " )->Show; } }

... my $my_Button3 ...

Use meaningful variable name, not $my_Button3 but $exitButton

A good 98% of all vars you use should be "my" vars so you shouldn't feel the need to use that my_ in the name

Here are tips and links and links and link on crucial tk info you need :)

tk tips like this... tk scoping issue, tk closures people, Re: TK Submenus (Tk::Menu , global variables/ spirit of strict), tk scoping function argument passing, can't share Tk mainwondow between threads


In reply to Re: Perl/Tk invoking a batch command and passing argument by Anonymous Monk
in thread Perl/Tk invoking a batch command and passing argument by vipinm2007

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.