in reply to some general question / Wx related question

WRT your first question: when you use exec the current process is replaced with the new command (so your gui program disappears); you want system (or some wrapper thereof like IPC::Run) instead.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: some general question / Wx related question

Replies are listed 'Best First'.
Re^2: some general question / Wx related question
by Luk (Initiate) on Apr 16, 2020 at 19:45 UTC
    thank you, works like a charm!

    this was the output when trying to execute a random txt file:

    "C:\perl\input.txt" Bareword found where operator expected at C:\perl\input.txt line 1, near "<Name>Softwares"

    I replaced it by just system ($cmd), didn't bother the "or die" part or in case of failure the window closes anyway :) https://perldoc.perl.org/functions/system.html the error is seen in my command prompt anyway.