From padre type Alt + Tools + Plug-in Tools + Edit My Plug-in

Then edit My.pm to add

sub menu_plugins_simple { my $self = shift; return $self->plugin_name => [ 'About' => sub { $self->show_about }, # Padre::Wx::Main=HASH(0x2e189cc) Wx::CommandEvent=SCALAR(0x3d3ed2c) 'Run echo.bat $filename'."\tCtrl-Alt-F5" => \&run_echo, ]; } sub run_echo { my $self = shift; my $main = eval { $self->main } || $self; my $document = $self->current->document; warn "document : $document\n"; my $filename = $document->filename || $document->tempfile; warn "filename : $filename\n"; local $ENV{PADRE_FILENAME} = $filename if defined $filename; $main->run_command(qq{C:/full/path/to/perl.EXE C:/full/path/to/e +cho.pl "$filename"}); }

After you enable this plugin ( Tools + Plug-in Manager ) type Ctrl-Alt-F5 and watch the Output pane with amazement.


In reply to Re^3: How do I run a perl script with an alternate perl.exe from Padre? by Anonymous Monk
in thread How do I run a perl script with an alternate perl.exe from Padre? by Je55eah

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.