The perlvar is $^O not $^0

$^0 is not a valid perlvar, the OS name variable is $^O.