Yes, I know there are websites; but I’ll need feedback and I know there are a lot of experts here.
I know how to write programs using Easytrieve. I want to learn Perl so that I can convert Easytrieve into something free and modern. I have no unix experience, and no experience with anything that looks remotely like Perl. I would like to post questions, receive answers, and then go from there.
I have written this from Learning Perl and saved it to Desktop => Perl:
#1/usr/bin/perl print “Hello, world! ”;
I opened a Terminal on my Mac and typed Hello_World. It says ‘-bash: Hello_World: command not found’. I received the same error when I typed chmod a+x Hello_World. The book says, 'Now you're ready to run it:', so I typed /Hello_World into the terminal. It said, ‘-bash: $: command not found’.
It’s pretty obvious I have no idea what I’m doing; but it seems obvious to me that I’m not telling the terminal where ‘Hello_World’ lives. So to start off this thread…
Having written the first program, how do I run it?