You can compare $s1 and $s2 above with
to extract the data itself, you'll need a dereference: $$ s1
This uses POSIX::setlocale The basic collation conversion is done by
strxfrm() which terminates at NUL characters being a decent C routine.
collate_xfrm() handles embedded NUL characters gracefully. Due to cmp
and overload magic, lt, le, eq, ge, and gt work also. The
available locales depend on your operating system; try whether C