in reply to Working through it...

Expected array: (I hand typed this, but it should be close)

You hand typed nonsense (or possibly Lua) :) that is not perl syntax!!!

In perl, associative arrays are called hash, and named starting with % character and are accessed using { } not [ ]

Regular arrays, non-associative arrays, are called array, and named starting with @ character and are accessed using [ ] not { }

Replies are listed 'Best First'.
Re^2: Working through it...
by Inexistence (Acolyte) on Sep 10, 2011 at 23:07 UTC

    Yes, LUA style format so my feeble little brain can grasp the layout and access. I'm reading from "Modern Perl" for the information regarding arrays. I thought that format was correct based on the examples, but the examples didn't deal with depth either, soooo...

    @ and are matching formats in my head

    I'll try and correct the resulting table format now

      I'm reading from "Modern Perl" for the information regarding arrays.

      Arrays use numeric indexes. You probably want hashes, because they use strings as keys. You should also review the Nested Data Structures section.

      Improve your skills with Modern Perl: the free book.