in reply to Launch terminal in MAC and PC

Are you looking for a way to determine what env you're working in? If so, there's a few ways, the most basic being checking $^O.

Replies are listed 'Best First'.
Re^2: Launch terminal in MAC and PC
by waytoperl (Beadle) on Oct 31, 2014 at 12:01 UTC

    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$

      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'

      instead. Note the single quotes that tell Perl the program. Also see perlrun for -e.