in reply to Launch terminal in MAC and PC
Yes i want to know the env i'm working. Checked $^O and not useful data was available
Users-MacBook-Pro:~ User$ perl -e print $^O Users-MacBook-Pro:~ User$ [download]
You will need to learn about your shell and quoting. It's better to run such a program from a file if you are not sure how your command line shell behaves.
You can try
perl -wl -e 'print $^O' [download]
instead. Note the single quotes that tell Perl the program. Also see perlrun for -e.