if ($OS eq "MSWin32")
That has always worked fine for the last 25 years that I've been using perl.
However, I don't assume that it will work as expected forever.
But then I also don't want to guess at what might be needed if the osname is changed.
I'm still waiting to see if Strawberry comes out with a perl 5.32 or perl 7.xx
Recent posts by kmx indicate that he has started work on the next release - see
this github thread for example.
I expect it will be perl-5.32.0, though this has not been explicitly stated any place that I know of.
Cheers,
Rob