in reply to passing values to another perl program

Just a thought here..
In your code, you're pulling part of the command line from a file line by line
It's quite likely that this line contains the newline string, which, when inserted before the -t causes the shell to believe that you're trying to type two seperate lines (thus it's actually trying to do a :

sh ldbtest.pl -e aa100001<newline>
sh -t 123

Try using a chomp on the value you interpolate into the piped open, or backticks, and see if that helps any.

Cheers,

Malk
  • Comment on Re: passing values to another perl program

Replies are listed 'Best First'.
Re: Re: passing values to another perl program
by treebeard (Acolyte) on Jul 09, 2001 at 22:36 UTC

    ahhhh the chomp worked! i guess i should have paraphrased the advice of my latin teacher when practicing translating...."when it doubt, chomp" that you monks!

    ..and thank you for the advice on Open3(), i was curious about how that would work...