in reply to how to recognize windows and linux os

The $^O variable tells you what OS perl was built for; possible values are listed in perldoc perlport.