in reply to Re^3: Suppress windows cmd for system command in Perl
in thread Suppress windows cmd for system command in Perl

Its a C++ application that is calling one perl script that call one function in pm files in which I am using the system command to convert my input file to xml using java jar. So the script is neither running in command line nor I am directly opening the pl script by double clicking. It is internally called by C++ application.
  • Comment on Re^4: Suppress windows cmd for system command in Perl

Replies are listed 'Best First'.
Re^5: Suppress windows cmd for system command in Perl
by dasgar (Priest) on Jun 18, 2015 at 20:30 UTC
Re^5: Suppress windows cmd for system command in Perl
by BrowserUk (Patriarch) on Jun 18, 2015 at 18:58 UTC
    It is internally called by C++ application.

    Does the C++ app have a GUI?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
      Yes its a windows application.
        its a windows application.

        I suspect that that the window you are seeing is being created when the C++ app spawns Perl; rather than when Perl calls system; and unless you have access to the sources of the C++ and can modify it; you may be stuck.

        The only suggestion I have that might fix it without modifying the C++ app is to swap your call to system, for a call to Win32::Process, and try using the CREATE_NO_WINDOW flag.

        If that doesn't work, see above.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
        I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!