more useful options | |
PerlMonks |
Re: Opening another Perl script in Current Window using the perl Tk moduleby ExReg (Priest) |
on Sep 12, 2016 at 16:46 UTC ( [id://1171594]=note: print w/replies, xml ) | Need Help?? |
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.
This will run the other perl file in another process.
In Section
Seekers of Perl Wisdom
|
|