good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Proper creation of a negative numberby toolic (Bishop) |
on Jul 08, 2015 at 13:31 UTC ( [id://1133720]=note: print w/replies, xml ) | Need Help?? |
Use the substitution operator to move a minus sign at the end of the string (if any) to the front of the string:
Outputs:
In Section
Seekers of Perl Wisdom
|
|