in reply to ActivePerl - perl.exe works, wperl.exe does not...
Add this at the top of your program
BEGIN { use Win32 qw(SW_HIDE); Win32::SetChildShowWindow(SW_HIDE); my $perl = $^X; if( $perl =~ s/wperl.exe/perl.exe/i ){ system(1, $perl, $0, @ARGV ); exit; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: ActivePerl - perl.exe works, wperl.exe does not...
by spstansbury (Monk) on Jan 26, 2012 at 18:52 UTC | |
by Anonymous Monk on Jan 27, 2012 at 09:36 UTC | |
by Anonymous Monk on Jul 11, 2013 at 09:03 UTC |