in reply to running a perl file from within a perl file
# 813119.pl: my @args=(0); my $ filename = "ABC.pl"; @args = ("$filename com1@115200 65"); system(@args) == 0 or die "system @args failed: $?";
Mostly works for me. ABC.pl gets called, and displays# ABC.pl: print join( ' / ', @ARGV), "\n";
I'd recommend quoting the '@' character in your @args assignment, as in:com1 / 65
Which changes the output to@args = ("$filename com1\@115200 65");
What output are you seeing? Which version of perl (perl -V)?com1@115200 / 65
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running a perl file from within a perl file
by perly_newbie (Novice) on Dec 18, 2009 at 03:41 UTC |