If you are using a Mac (implied by Xcode) open terminal window and type:

perl -v

That should get you something that looks a little like:

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x +86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1603 [296746] provided by ActiveState http://www.ActiveSt +ate.com Built Mar 13 2013 11:29:21 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

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:

#!/usr/bin/perl use strict; use warnings; print "Hello World\n";

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 reply to Re: Complete novice in need of guidance by GrandFather
in thread Complete novice in need of guidance by SerpSomal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.