Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
help using terminal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="aaron4osu" data-source="post: 1130742" data-attributes="member: 176828"><p>I'm taking a survey course of languages and we are covering perl this week. I have never used terminal before. I need to write perl script that will parse xml data, but I can't even figure out how to use the terminal. </p><p>when I open the terminal I get this line(I subed out my name and username): </p><p></p><p>firstName-LastName-MacBook-Pro:~ username$</p><p></p><p>i have tried the commands ls and that works, but I can't figure out how to run scripts from a file. I have tried a simple hello world app by typing:</p><p></p><p>#!/usr/local/bin/perl</p><p>print "Hello World!\n";</p><p></p><p>in text edit saving it as hello.pl then I tried to type hello.pl in the terminal and it says </p><p>-bash: first.pl: command not found</p><p></p><p>can someone explain in simple terms how to run simple programs like this? </p><p></p><p>thanks, aaron</p></blockquote><p></p>
[QUOTE="aaron4osu, post: 1130742, member: 176828"] I'm taking a survey course of languages and we are covering perl this week. I have never used terminal before. I need to write perl script that will parse xml data, but I can't even figure out how to use the terminal. when I open the terminal I get this line(I subed out my name and username): firstName-LastName-MacBook-Pro:~ username$ i have tried the commands ls and that works, but I can't figure out how to run scripts from a file. I have tried a simple hello world app by typing: #!/usr/local/bin/perl print "Hello World!\n"; in text edit saving it as hello.pl then I tried to type hello.pl in the terminal and it says -bash: first.pl: command not found can someone explain in simple terms how to run simple programs like this? thanks, aaron [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
help using terminal
Top