in reply to Re^2: number comparison with a twist
in thread number comparison with a twist
I would use the default of "/" unless there is a reason not to.
My second choice would be vertical bar.
My 3rd choice would be curly braces - almost never.
I have not ever been tempted to use "," for the separator.
$from_api =~ s,^(\d+)\.(\d{2}).*$,${1}${2},; $from_api =~ s/^(\d+)\.(\d{2}).*$/$1$2/; $from_api =~ s|^(\d+)\.(\d{2}).*$|$1$2|; $from_api =~ s{^(\d+)\.(\d{2}).*$}{$1$2};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: number comparison with a twist
by anotherguest (Novice) on Mar 05, 2020 at 13:32 UTC |