in reply to converting from str to int

This just sounds like a bad idea. There are examples of arithmetic parsers out there, and I'd recommend this since you don't want to try to evaluate an invalid expression (unmatched parens, for example).

Replies are listed 'Best First'.
Re^2: converting from str to int
by Anonymous Monk on Jul 06, 2014 at 07:42 UTC

    This just sounds like a bad idea. There are examples of arithmetic parsers out there, and I'd recommend this since you don't want to try to evaluate an invalid expression (unmatched parens, for example).

    Hmm, its bad idea to do homework? I'm not sure what you're saying perlfan