in reply to Suppress windows cmd for system command in Perl

Try: system( 1, qq[start /b your command and args here] );


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". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^2: Suppress windows cmd for system command in Perl
by QM (Parson) on Jun 18, 2015 at 12:47 UTC
    Ah, the days of fiddling with start. Why the F*** does Micr$oft name things with overloaded words? I think it's a plan to avoid any possible bad words in every language in the world. Windows. Surface. Access. Excel (well, at least they changed the spelling). Outlook. Office. Explorer. Natural. Publisher. Vista. Visual <anything>. Xbox.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      Why the F*** does Micr$oft name things with overloaded words?

      As opposed to *nix' nice, clear, self explanatory ones: ar crontab chgrp dd ex fc fuser grep iconv ipcrm ipcs ln nm nohup od stty uucp uux yacc :)

      Aaaar cron, lay the table and change the rope. Deedee's ex f*** for using er. Grope I, won't convert me. I pee in the cream & pee in the cakes. Bleeeeeeeeeeeeeech.


      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". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
Re^2: Suppress windows cmd for system command in Perl
by Chaks (Initiate) on Jun 18, 2015 at 18:36 UTC
    Thanks BrowserUk. I tried using that but still I see the cmd window popup.

      Hm. I cannot reproduce the problem on my machine. Neither the original problem or when using start.

      Are you running the perl script you are using from a command line; or double clicking it in the explorer?


      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!
        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.