I tried using system() and I get an error. Here is my code:
my $executable = "C:/Users/Desktop/file.exe";
@args = ("$executable", 'input_command');
system(@args) == 0
or die "system @args failed: $?"
Here is the error I get:
An endfile record was detected in a READ statement (unit= 5).
Error occurs at or near line 21201 of _opnfil_
Called from or near line 231 of _MAIN__
Any suggestions? |