in reply to Basic Array Question

mindblowing stuff :)

can someone pass the aspirin

:)

would anyone be able to anwser my 2 daft questions from earlier too please?, the ones about my and %



Thanks for all your help

Replies are listed 'Best First'.
Re^2: Basic Array Question
by davido (Cardinal) on May 10, 2006 at 18:55 UTC

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

    • $variable is a scalar.
    • @variable is an array.
    • %variable is a hash.

    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

      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.