in reply to Re^3: how to open a separate notepad
in thread how to open a separate notepad

You are entirely correct. I was testing with a one-liner (perl -e "exec('test.txt')") which doesn't point out that you never reach the line following the exec (because there isn't one!). Unfortunately, system by itself doesn't help because the Perl script is left waiting for notepad (or your favourite editor) to return.

thundergnat provides the answer by modifying the command line to use the windows start command. This appears to be equivalent to the UNIX trailing apostrophe.

print "This happens before\n"; system ("start test.txt"); print "This happens afterwards\n";