On Fri, Jul 29, 2005 at 08:36:10AM +0200, Piotr Fusik wrote: > 2. [#36675] Strings starting with '-' or '+' are treaded as strings, even > when they represent numbers. Now I doubt this should be changed, but at least > it should be clearly documented in perlop and probably perltrap. (imagine > someone extracts numbers with a regular expression or split, and expects > "-100" to be treated the same way as "100")
I guess the upshot of this is: $ perl -wle '$f = "-100"; print -$f' +100 $ perl -wle '$f = -100; print -$f' 100 -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Just call me 'Moron Sugar'. http://www.somethingpositive.net/sp05182002.shtml