Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > access elements in a complex structure

Reply
Thread Tools

access elements in a complex structure

 
 
Larry
Guest
Posts: n/a
 
      10-04-2008
Hi,

I have a quick question...suppose I have the following data structure
returned by dmap_unpack(); and shown by Data:umper :

$VAR1 = [
[
[
'Header',
[
[
'Notice1',
'Hello World!'
],
[
'Notice2',
'Cazzo dici??'
],
[
'Buffer',
2048
]
]
]
]
];
How can I access single element in the structure??

Like how can I access: key->Notice1

thanks ever so much
 
Reply With Quote
 
 
 
 
Larry
Guest
Posts: n/a
 
      10-04-2008
In article <>,
Tim Heaney <> wrote:

> But wouldn't you rather use a hash?


I cannot use a hash. Both of your exemplase did not work: Pseudo-hashes
are deprecated at dmap.pl line 36, <DATA> line 1
 
Reply With Quote
 
 
 
 
Larry
Guest
Posts: n/a
 
      10-04-2008
In article <dontmewithme->,
Larry <> wrote:

> I cannot use a hash. Both of your exemplase did not work: Pseudo-hashes
> are deprecated at dmap.pl line 36, <DATA> line 1


Iam sorry i was wrong it is all working great now
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How complex is complex? Kottiyath Python 22 03-28-2009 10:11 PM
wsdl2java: method parameter a complex type that extends another complex type Robert Mark Bram Java 0 02-04-2007 10:06 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
For expert on complex loops (reposted) - complex looping problem news.amnet.net.au Java 1 04-13-2004 07:10 AM
Perl complex data structure ... how to get more flexible access? how to avoid eval? valued customer Perl Misc 10 02-25-2004 06:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57