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

inclusion of .pm files in makefile

2007-05-05 Thread carol white
Hi, How is it possible to include personal modlule .pm in a make file? i have included PM => { 'path_to_pm_file' => 'pm_file' } in Makefile.PL but doesn't work. if for ex, file.pm is in /home/file.pm, how should I specify? like '/home/file.pm' => 'file.pm' ? Thanks in advance carol

Re: regular expression

2007-05-05 Thread xavier mas
El Sábado 05 Mayo 2007 16:28, [EMAIL PROTECTED] escribió: > Hi, > > If you wish to read, change xml tree structure and create a xml string > again than XML::TreePP > (http://search.cpan.org/~kawasaki/XML-TreePP-0.19/lib/XML/TreePP.pm) should > be helpfull. > > Yaron Kahanovitch > > - Original M

Re: regular expression

2007-05-05 Thread yaron
Hi, If you wish to read, change xml tree structure and create a xml string again than XML::TreePP (http://search.cpan.org/~kawasaki/XML-TreePP-0.19/lib/XML/TreePP.pm) should be helpfull. Yaron Kahanovitch - Original Message - From: "xavier mas" <[EMAIL PROTECTED]> To: beginners@perl.o

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
Just a guess but maybe you shout use this: foreach my $child (sort keys( %{$parent{$pid}} )) { dump_process( $child ); } Yaron Kahanovitch - Original Message - From: "Ken Foskey" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: 16:48:17 (GMT+0200) Asia/Jerusalem שבת 5 מאי 2

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