Hi, thanks for the reply. Sorry I didn't provide examples of the code but the powers that be won't let me you see (they try to shut me down on MTV.. heh, sorry). Your example helped a lot though, and I have most of it done. Just two more questions with regards to the data structures, could you let me know how close these are:
name = thingy['albums'][0]['title'] $name = $thingy{albums}[0]{title}
Should both return 'Foxtrot' (without the quotes), correct?
And as for populating the structures, could I do something such as the following:
thingy['artistName'][0]['year'] = 1987 or thingy{'artistName}[0]{'year'} = 1987
And if I did it this way, how would I go about populating multiple entries in the album field, would I have to use a counter, or is there some other way? Thanks again.
In reply to Re: (jeffa) Re: Converting Python to Perl and back again
by Anonymous Monk
in thread Converting Python to Perl and back again
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |