in reply to (jeffa) Re: Converting Python to Perl and back again
in thread Converting Python to Perl and back again
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 3Re: Converting Python to Perl and back again
by jeffa (Bishop) on Apr 04, 2003 at 13:32 UTC |