in reply to Re: Basic Array Question
in thread Basic Array Question

@ is a sigil, indicating an array. $ is a sigil indicating a scalar. % is a sigil indicating a hash (an associative array).

my creates a lexically scoped variable.

Important: You won't be able to just guess at this stuff. perlintro is required reading, if you plan to actually hammer out a few lines of Perl code.


Dave

Replies are listed 'Best First'.
Re^3: Basic Array Question
by Anonymous Monk on May 11, 2006 at 09:26 UTC

    Thanks, don't get me wrong -I am heavily reading up on all of this, its just that I'm jumping straight into a minor project in order to force myself to learn.
    I'm reading O'Riellys Llama book, and I'm only on chapter 4. I notice if I had reached chapter 6 I would have answered my hashes questions.

    Thanks for answering my extremely fundamental questions.

    I appreciate that there are security considerations also, but at present I'm just ploughing through code, making things clearer as I go.

      Also, I appreciate that not logging in is ignorant - sorry.

        Well, you're always welcome here. Everyone starts somewhere. I hope you found perlintro helpful. The Llama book is a fantastic resource for newcomers to the language. I found myself referring back to it for a long time.

        You should also get a handle on the POD that comes with Perl. If you're using ActiveState, there's an HTML version of the POD on your system already. With other builds, you can always explore the POD via the command line by typing "perldoc <pod_name>". And I happen to really appreciate http://perldoc.perl.org. Once you've gotten comfortable with the Llama book, start picking POD documents to read, and have at it. You'll find it enlightening.


        Dave