I have Perl on Mac, Windows and Ubuntu. How can I tell from within the script which one is which? Thanks in advance.
Edit: I was asked what I am doi
Here's a quick reference on how to find the OS the local machine is running from Perl.
The $^O variable ($OSTYPE if you use English) contains the operating system that your perl binary was built for.