in reply to numbers in parentheses not considered numeric values??

What constitutes a number in parentheses as nonnumeric?

I'm not sure why you ask since even you don't think it's a number. If you did, you wouldn't have said "a number in parentheses"; you would simply have said "a number".

The result of the string evaluated as Perl code would be a number, but the addition operator isn't about to start evaluating data as code.

  • Comment on Re: numbers in parentheses not considered numeric values??

Replies are listed 'Best First'.
Re^2: numbers in parentheses not considered numeric values??
by gghelpneeded (Novice) on Aug 07, 2015 at 22:20 UTC
    I can't parentheses then? Bummer. I thought perl would allow it since parentheses are common in arithmetic problems.
      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!