P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
...[Perl Program] $testprog = "testprog"; $a=1; $b=2; $c="This is a test"; system($testprog $a $b $c)
How do I get $c to be "This is a test"? Do I use shift or something else?[in Shell script "testprog"] a=$1 b=$2 c=$3 echo $a = 1 echo $b = 2 echo $c = "This"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing Command line values from Perl to Sh via system()
by RatArsed (Monk) on Jul 17, 2001 at 19:01 UTC | |
|
Re: Passing Command line values from Perl to Sh via system()
by Jonathan (Curate) on Jul 17, 2001 at 19:25 UTC | |
by P0w3rK!d (Pilgrim) on Jul 17, 2001 at 20:02 UTC | |
|
Re: Passing Command line values from Perl to Sh via system()
by merlyn (Sage) on Jul 17, 2001 at 20:11 UTC |