in reply to Opening another Perl script in Current Window using the perl Tk module
What your code is doing now is opening the other perl file and giving you a file handle, $fh, to do something with the contents of the file, such as read it. I think what you want to do is not read the file, but execute the file. To do that, you need to execute the file, either through a system call or a backtick call, i.e.
system( 'perl C:/User/MyUser/Desktop/CRA.pl' ); or `perl C:/User/MyUser/Desktop/CRA.pl`;
This will run the other perl file in another process.
|
|---|