in reply to Perl Exec with Spaces

windows shells don't have escape sequences for spaces, so you have to put double quotes inside $cmd. try:
$cmd = "\"$BaseDir$myprog\""


Everything is true." "Even false things?" "Even false things are true" "How can that be?" "I dunno man, I didn't do it."

Replies are listed 'Best First'.
Re^2: Perl Exec with Spaces
by nevafuse (Novice) on Mar 11, 2009 at 19:47 UTC
    I did, it executes the program, but exits the perl script without warning and most importantly without finishing the rest of my script.

      As it should.

      You can either use IPC::Open3 or launch your application via start.