in reply to Re: converting from str to int
in thread 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).

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