Suppress warning when -cash does not yet exist
This commit is contained in:
parent
3a07b8eadb
commit
76ef79b9ee
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ sub new_from_float($class, $num) {
|
|||
}
|
||||
|
||||
sub parse_string($class, $str) {
|
||||
$str =~ /\S/ or return undef;
|
||||
defined $str and $str =~ /\S/ or return undef;
|
||||
|
||||
my ($neg, $int, $cents)
|
||||
= $str =~ /^\s*(?:\+|(-)?)([0-9]+)?(?:[,.]([0-9]{1,2}))?\s*$/
|
||||
|
|
Loading…
Add table
Reference in a new issue