use warnings; use strict; while (<DATA>) { chomp; s/(.+)-$/-$1/; print "$_\n"; } __DATA__ 1.05 -5.66 7.89-
Outputs:
1.05 -5.66 -7.89
In reply to Re: Proper creation of a negative number
by toolic
in thread Proper creation of a negative number
by insta.gator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |