I am trying to figure out how to get 2 subrutines called at the same time using Win32:
rocess. It seems like it should do what I want it to do. But I cant figure out the syntax. The example give:
============
use Win32:
rocess;
Win32:
rocess::Create($ProcessObj,
"c:\\windows\\system32\\notepad.exe",
"notepad",
0,
NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport();
=============
Now this works to call the program. But I cant seem to get the syntax for callin a &Sub. What I want is something like this:
==============
use Win32:
rocess;
use File::Copy;
sub move_file {
file copy file.txt renamed.txt;
}
sub hello {
print "hello world\n";
}
and then to call both &Subs at the same time. Then I want to have &Hello wait till &move is done and then have them loop over and over X times.
Any ideas?
Thanks
Ryan
============
use Win32:
Win32:
"c:\\windows\\system32\\notepad.exe",
"notepad",
0,
NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport();
=============
Now this works to call the program. But I cant seem to get the syntax for callin a &Sub. What I want is something like this:
==============
use Win32:
use File::Copy;
sub move_file {
file copy file.txt renamed.txt;
}
sub hello {
print "hello world\n";
}
and then to call both &Subs at the same time. Then I want to have &Hello wait till &move is done and then have them loop over and over X times.
Any ideas?
Thanks
Ryan