RE: How to Get Hash Array into an Object

2002-03-11 Thread Joseph P. Discenza
Frederic Bournival wrote, on : sub GetText { : : my $this = shift @_; : : my %temp = %$this-{mimeparts}; : : return $temp{'text'}; : : } : The problem is in the GetText SUB... : $this-{mimeparts}is an Hash Array and : i want to get the value of this hash with the 'html' key

RE: How to Get Hash Array into an Object

2002-03-11 Thread Martin Moss
my %hasharray=%{$this-{mimeparts}}; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Frederic Bournival Sent: Monday 11 March 2002 15:21 To: Perl Win32-users Subject: How to Get Hash Array into an Object Hello, i really need your help...

RE: How to Get Hash Array into an Object

2002-03-11 Thread Thomas Bätzler
Joseph P. Discenza [[EMAIL PROTECTED]] wrote: Frederic Bournival wrote : $this-{mimeparts}is an Hash Array and : i want to get the value of this hash with the 'html' key ... Does this not work? return $this-{'mimeparts'}{'html'}; No, there is a reference operator missing,

RE: How to Get Hash Array into an Object

2002-03-11 Thread Joseph P. Discenza
Thomas Bätzler wrote, on Monday, March 11, 2002 10:46 AM : Joseph P. Discenza [[EMAIL PROTECTED]] wrote: : Frederic Bournival wrote : : $this-{mimeparts}is an Hash Array and : : i want to get the value of this hash with the 'html' key ... : : Does this not work? : : return