in reply to Re: numbers in parentheses not considered numeric values??
in thread numbers in parentheses not considered numeric values??

I can't parentheses then? Bummer. I thought perl would allow it since parentheses are common in arithmetic problems.
  • Comment on Re^2: numbers in parentheses not considered numeric values??

Replies are listed 'Best First'.
Re^3: numbers in parentheses not considered numeric values??
by ikegami (Patriarch) on Aug 07, 2015 at 22:21 UTC
    The addition operator adds numbers, not arithmetic expressions. You can use all the parentheses you want in your arithmetic expressions, but not in your numbers.
      As a form of data input, it is not allowing it. But I understand what you are saying. Your edits are making my responses seem completely off. lol. thanks for the help!

        The following adds the values produced by 4 and (5):

        4+(5)

        You're saying the following should do the same:

        4+"(5)"

        If so, where do you draw the line? Should the following attempt to wipe your system?

        4+"system('rm -rf /')"