P is for Practical | |
PerlMonks |
Re: Complete novice in need of guidanceby GrandFather (Saint) |
on Oct 02, 2016 at 21:49 UTC ( [id://1173126]=note: print w/replies, xml ) | Need Help?? |
If you are using a Mac (implied by Xcode) open terminal window and type:
That should get you something that looks a little like:
The details will be different because I'm using a Windows machine so my Perl was build for Windows, but that doesn't matter much. If that worked, cd to somewhere you can create files (your home directory ~ would be a reasonable place) and type: nano hello.pl then press return. In the nano editor enter:
Press Ctrl-X then Y and return to exit and save your changes to the file hello.pl. Type perl hello.pl then return. You have now written and run your first Perl program. For extra points you can chmod ug+x hello.pl to make the script executable without needing to use the Perl interpreter directly. You can then just ./hello.pl. You should now be in a position to run examples and do exercises from the book.
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|