1. As others already pointed out that most likely your $some_var[$i] is an array reference.

    However, just for completeness, I want to point out that it could also be a symblic reference. If use strict is truned off for refs, that would be also correct from a syntax point of view.

    However I am not a supporter of the symbolic ref usage.

  2. It is worth to mention to new perl users, that $# can be used as lvalue.

    This is extreamly useful, when you want perl to garbage collect your big arrays.

    Just do
    @a = (1..1000); print "original array:\n"; print join(",", @a), "\n"; $#a = -1; print "after set to -1:\n"; print join(",", @a), "\n";#You can not say for sure that your array ha +s already been garbage collected at this point, but at least it is no +w a candidator.

    In reply to Re: where to look up "funny looking" perl notation (and an example) by pg
    in thread where to look up "funny looking" perl notation (and an example) by glwtta

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



  3. Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  4. Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  5. Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  6. Please read these before you post! —
  7. 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
  8. 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;
  9. Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  10. See Writeup Formatting Tips and other pages linked from there for more info.