Perl-Sensitive Sunglasses | |
PerlMonks |
Re: regex to match numbers after decimalby Kenosis (Priest) |
on Jan 15, 2014 at 05:40 UTC ( [id://1070647]=note: print w/replies, xml ) | Need Help?? |
Adding to NetWallah's suggestion, perl (the interpreter) 'sees' the numeric value of $price as -1.5, not the -1.500 you've scripted:
In Section
Seekers of Perl Wisdom
|
|