/usr/src/perl/pod/perlfaq8/How_do_I_find_out_which_operatin.pod

How do I find out which operating system I'm running under?

The $^O variable ($OSTYPE if you use English) contain the operating system that your perl binary was built for.