array of anonymous hash?

2010-02-25 Thread raphael()
;$name --> ${$element}{name1}\n"; } } # print Dumper( \...@links ); __END__ what I have is an array of anonymous hash. How do I access "name2" (second hash key) independently? Without using a loop? Ex. I have to mkdir using "name2" then how can I pass it directly to a

array of anonymous hash?

2010-02-25 Thread raphael()
My BAD :( THERE IS NO FIRST ELEMENT IN A HASH!! PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. LET ME REPHRASE -- HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
t "$name --> ${$element}{name1}\n"; > } > } What are you trying to do here - for each key $name out of $element you print its "name1" key. You probably want (untested): « print "$name --> $element->{$name}\n"; » > # print Dumper( \...@links )

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
Hi Raphael! On Thursday 25 Feb 2010 12:59:33 raphael() wrote: > My BAD :( > > THERE IS NO FIRST ELEMENT IN A HASH!! > > PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. > > LET ME REPHRASE -- > HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? OK, no need to use all-caps

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
t ) { print "$name --> ${$element}{name1}\n"; } } # print Dumper( \...@links ); __END__ what I have is an array of anonymous hash. How do I access "name2" (second hash key) independently? Without using a loop? Ex. I have to mkdir using "name2" then h

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
raphael() wrote: My BAD :( THERE IS NO FIRST ELEMENT IN A HASH!! PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. LET ME REPHRASE -- HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? use strict; use warnings; my @links = ({ name1 => 'http://www.abc.com/data

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
Hi raphael! I believe you meant to CC this to the list, so I'm CCing it (I don't see anything in your reply that needs to be in private). On Thursday 25 Feb 2010 13:42:07 raphael() wrote: > On Thu, Feb 25, 2010 at 4:50 PM, Shlomi Fish wrote: > > Hi Raphael! > > > > On Thursday 25 Feb 2010 12:5

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
Shlomi Fish wrote: ... WxWidgets has wxGlade ... Does it? Thanks Shlomi I am very fond of Wx and didn't know about this. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
On Thursday 25 Feb 2010 17:09:02 Rob Dixon wrote: > Shlomi Fish wrote: > > ... WxWidgets has wxGlade ... > > Does it? Thanks Shlomi I am very fond of Wx and didn't know about this. > You're welcome. I think I've tried it and wasn't really impressed and returned to a standard writing-GUI-code-in