Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: running a perl file from within a perl file

by brap (Pilgrim)
on Dec 17, 2009 at 02:47 UTC ( #813123=note: print w/replies, xml ) Need Help??

in reply to running a perl file from within a perl file

# my @args=(0); my $ filename = ""; @args = ("$filename com1@115200 65"); system(@args) == 0 or die "system @args failed: $?";

# print join( ' / ', @ARGV), "\n";
Mostly works for me. gets called, and displays
com1 / 65
I'd recommend quoting the '@' character in your @args assignment, as in:
@args = ("$filename com1\@115200 65");
Which changes the output to
com1@115200 / 65
What output are you seeing? Which version of perl (perl -V)?

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
    Hey thanks, for the reply I got it to work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://813123]
[Discipulus]: choroba the Tk client print out an educated error message that it cant connect..
[Discipulus]: Can't connect to 80Invalid argument at ..perl5.26.64bit/ perl/vendor/lib/ LWP/Protocol/http. pm line 46, <__ANONIO__> line 34500.
[Corion]: Discipulus: That's weird, but maybe one of the machines is still wonky. I haven't looked :-/

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-10-24 10:51 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (288 votes). Check out past polls.