Id like to know how to run a perl file from within a perl file. From cmd line it is easy: I can go to a folder in C and run ABC.pl with options like
ABC.pl com1@115200 65
I am having problem passing these arguments (com1@115200 65) from within another perl file. I am trying to use:
my $ filename = "ABC.pl";
@args = ("$filename com1@115200 65");
system(@args) == 0
or die "system @args failed: $?";
The file can be run without the arguments easily. Plz let me know what is going on.