Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Opening another Perl script in Current Window using the perl Tk module

by ExReg (Priest)
on Sep 12, 2016 at 16:46 UTC ( #1171594=note: print w/replies, xml ) Need Help??


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.

  • Comment on Re: Opening another Perl script in Current Window using the perl Tk module
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1171594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2019-10-16 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?