That's a nice and short tip.
$^O is the OS under which this copy of perl was built. This is not the same as what OS you are currently running.