Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ProGrape

  1. ProGrape

    Evaluating Arithmetic Operators within Backticks

    That would make sense. If anyone is interested, I wrote a few est scripts to analyse the behaviour of the do command. What was needed what the useage of my($i,$j,$k) instead of simply ($i,$j,$k). do and backticks do not work in exactly the same way... the calling instance of p continues to use...
  2. ProGrape

    Evaluating Arithmetic Operators within Backticks

    travs & brigmar, thanks for the suggestions. Yes I see what you mean about asking the shell to do the calculations, I hadn't really understood that before. And brigmar, that is what I had done (it works), but it results in longer code :P Miller, Wow! Even though your second improvement doesn't...
  3. ProGrape

    Evaluating Arithmetic Operators within Backticks

    Hm, I have already acknowledged that I am writing the code poorly. That was not my question, and in general I use good programming practices. I can see instances where having operators evaluated properly inside backticks would be useful and convenient even if I were not trying to minimise the...
  4. ProGrape

    Evaluating Arithmetic Operators within Backticks

    Hello. I am relatively new to perl, and I am having a problem involving the evaluation of arithmetic operators enclosed in backticks. From within my perl program, I call another perl program, using the following lines of code: @n=@ARGV; map system("perl other.pl ".($n[0]-$_)." ".($n[1]-1)."...

Part and Inventory Search

Back
Top