You can simply do it like this using system(...):
use warnings; use strict; die "Usage: perl_script.pl path_to_exe_file.exe" unless defined $ARGV +[0]; my $file=$ARGV[0]; ## get the path to your executables from the CLI system($file); # interact with your exe #Or print "Enter your excutable path:"; chomp(my $path=<STDIN>); ## get path from your script system($path); # interact with your exe
Try it, it works. Hope this helps
In reply to Re: Calling and interacting with external executable
by 2teez
in thread Calling and interacting with external executable
by verity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |