Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Launch terminal in MAC and PC

by jellisii2 (Hermit)
on Oct 30, 2014 at 16:53 UTC ( [id://1105651]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-03-28 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found