Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1171594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found