in reply to running notpade from perl
If you want to spawn Notepad but don't want to pause the script waiting for Notepad to close, use Windows' START command:
This runs Notepad in the "background" (a misnomer, since it will be activated just fine for the user to see it), and the script will continue immediately.system("start /b notepad $filename");
The Unix tradition is to allow the default editor to be configured, such as with an environment variable. The user can adjust this before running your application, if desired. I would code this like this:
my $editor = $ENV{EDITOR} || 'notepad.exe'; system("start /b $editor $filename;
--
[ e d @ h a l l e y . c c ]
|
|---|