pagarwal has asked for the wisdom of the Perl Monks concerning the following question:

i've data internally in this form:
hash = { array1 = ( arrayname, array11 = ( data reqd) ), array2 = ( arrayname, array21 = (another data reqd) ), . . . . . )
if i want to print the data reqd, how can i do this?

janitored by ybiC: Balanced <code> tags around codeblock

  • Comment on how can i print an array nested in an array which is further nested in hash?
  • Download Code

Replies are listed 'Best First'.
Re: how can i print an array nested in an array which is further nested in hash?
by Taulmarill (Deacon) on Mar 02, 2005 at 10:05 UTC
    if you do this for testing/debuging use Data::Dumper
    use Data::Dumper # build your hash print Dumper \%hash;
    if it's not for testing, please tell us what the output should look like.
Re: how can i print an array nested in an array which is further nested in hash?
by rupesh (Hermit) on Mar 02, 2005 at 11:57 UTC
Re: how can i print an array nested in an array which is further nested in hash?
by Nevtlathiel (Friar) on Mar 02, 2005 at 11:16 UTC
    How are you going to be getting at the data reqd? What do you know about it? Will you be trying to find it depending on its array number or its name or something else entirely?
Re: how can i print an array nested in an array which is further nested in hash?
by holli (Abbot) on Mar 02, 2005 at 10:33 UTC
    I canīt make any sense out of the data-structure you provided. Can you write it down in a way that actually compiles?


    holli, /regexed monk/