- or download this
$str = fraction($str) if ($str =~ /\d+_\d+/);
- or download this
$str = fraction($str);
...
...
}
return $str;
}
- or download this
if ($str =~ /\d+_\d+/) {
$str = fraction($str)
...
} else {
default
}
- or download this
$str = fraction($str) if ($str =~ /\d+_\d+/)
- or download this
convert_ratio_to_decimal( \$str );
- or download this
sub convert_ratio_to_decimal (\$) { ..... };
convert_ratio_to_decimal( $str );
- or download this
$obj->convert_ration_to_decimal();
- or download this
$error->logBadDateError( $str ) if (ErrorTracking::invalidDate( $str )
+)
- or download this
$varName = qr(regex goes here);
if ( $str =~ /$UnderscoredNumber/ ) ... # poor
if ( $str =~ /$SimpleRatio/ ) ... # good
if ( $str =~ /$Ratio::simpleFraction/ ) ... # better