http://www.perlmonks.org?node_id=1011894


in reply to Re: can't use certain hashnames when traversing a slightly complex hash
in thread can't use certain hashnames when traversing a slightly complex hash

Yep, it's all good. I simplified the code and the hash while posting.

I'm always interested in the first entry of the files sub-hash. (The rest are forks of the original Github gist.)

Thanks for looking out :)

  • Comment on Re^2: can't use certain hashnames when traversing a slightly complex hash

Replies are listed 'Best First'.
Re^3: can't use certain hashnames when traversing a slightly complex hash
by AnomalousMonk (Archbishop) on Jan 06, 2013 at 16:19 UTC
    I'm always interested in the first entry of the files sub-hash.

    Hmmm...     Again, and just for the record, the  'files' sub-hash (or any hash) can be said to have a 'first' element if and only if it has exactly one element. The only true ordering in a hash (or associative array) is the association between key/value pairs.

      Ohh ..I understand what you mean now!!!

      Seems github doesn't mentioned specifically whether or files will contain one or more entries. I've emailed them to find out....