M
mm
In a regular expression,
is a hyphen simply -
whereas a minus sign is \-
I am trying to understand the code below:
$addend_two = (rand 200) - 100;
$addend_two =~ /(\-?[\d]+)\.?[\d]*/ ? $intPart2 = $1 : die "No
integral value\n" ;
is a hyphen simply -
whereas a minus sign is \-
I am trying to understand the code below:
$addend_two = (rand 200) - 100;
$addend_two =~ /(\-?[\d]+)\.?[\d]*/ ? $intPart2 = $1 : die "No
integral value\n" ;