The actual code that generated my query was considerably more complicated. In a forlorn attempt to make, what I knew was a easy question, more readable I created a simple test case. Sorry!
Thanks to arturo I now know its a hash slice (having read 5 books that mention it - including your llama you'd have thought I'd have remembered but its not a construct I would normally use).

Personally I don't have a problem with homework questions. I don't see any moral case at all. After all whats the difference between an ignorant student and an ignorant contractor who's bluffed his way into a job? By your rationale you'd freely help one but not the other.

If I didn't want to answer a question I'd just ignore it or perhaps suggest to the 'students' another educational theory...

s/HOMEWORK/FO&FO/

FO&FO = F*** Off and Find Out

"We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire, and seduced by pleasure." - Samuel Johnson

In reply to RE: RE: Possible Homework alert by Jonathan
in thread strange looking code by Jonathan

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.