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
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
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 );
}
) 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
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