You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 93c691b8a6c32a3223371c82b46e29a16ef500f2)
${^SAFE_LOCALES}

Reflects if safe locale operations are available to this perl or not. This variable is always 1 if the perl has been compiled without threads. It is also 1 if this perl is using thread-safe locale operations. And it is 2 if this perl is emulating thread-safe locale operations. Note that an individual thread may choose to use the global locale (generally unsafe) by calling "switch_to_global_locale" in perlapi. This variable currently is still set to 1 in such threads.

This variable is read-only.

This variable was added in Perl v5.28.0.