Re: hash containing a hash, sorting keys help

2007-05-05 Thread Ken Foskey
On Sat, 2007-05-05 at 07:19 -0700, Tom Phoenix wrote: > On 5/5/07, Ken Foskey <[EMAIL PROTECTED]> wrote: > > > foreach my $child (sort keys( $parent{$pid} )) { > > dump_process( $child ); > > } > > > > Type of arg 1 to keys must be hash (not hash element) at ./visualise.cgi > > lin

Re: hash containing a hash, sorting keys help

2007-05-05 Thread Tom Phoenix
On 5/5/07, Ken Foskey <[EMAIL PROTECTED]> wrote: foreach my $child (sort keys( $parent{$pid} )) { dump_process( $child ); } Type of arg 1 to keys must be hash (not hash element) at ./visualise.cgi line 46, near "} )" That's saying that you're giving the keys() operator a hash

Re: hash containing a hash, sorting keys help

2007-05-05 Thread Rob Dixon
Ken Foskey wrote: I cannot get the syntax right for child lookup, Data::Dumper confirms that I have the structure as I expect (logic may be totally wrong though). I going to do a webpage pstree command. foreach my $child (sort keys( $parent{$pid} )) { dump_process( $child ); }

Re: hash containing a hash, sorting keys help

2007-05-05 Thread yaron
) Asia/Jerusalem שבת 5 מאי 2007 Subject: hash containing a hash, sorting keys help I cannot get the syntax right for child lookup, Data::Dumper confirms that I have the structure as I expect (logic may be totally wrong though). I going to do a webpage pstree command. foreach my $chil

hash containing a hash, sorting keys help

2007-05-05 Thread Ken Foskey
I cannot get the syntax right for child lookup, Data::Dumper confirms that I have the structure as I expect (logic may be totally wrong though). I going to do a webpage pstree command. foreach my $child (sort keys( $parent{$pid} )) { dump_process( $child ); } Type of arg 1 to key