Kraythorne has asked for the wisdom of the Perl Monks concerning the following question:
where 'file' and 'Salutation' are the HASH keys and 'DT_File' and 'Salutation' are the objects'file'<br> DT_File=HASH(0x3211db4)<br> 'Dedupe_level' => undef<br> 'Delimiter' => ','<br> 'Display_Record' => ARRAY(0x185becc)<br> empty array<br> 'Header' => 1<br> 'Header_Record' => ARRAY(0x185bc80)<br> empty array<br> 'Name' => 'current'<br> 'Record' => 1<br> <br> 'Salutation'<br> Salutation=HASH(0x3212924)<br> 'Dear' => 1<br> 'Fullname1' => ''<br> 'Fullname2' => ''<br> 'Initial1' => ''<br> 'Initial2' => ''<br> 'Sal_file' => 'current'<br> 'Surname1' => ''<br> 'Surname2' => ''<br> 'Title1' => ''<br> 'Title2' => ''<br>
can anyone tell me why the code thinks I am looking for the method in the 'Salutation' object rather than the 'DT_File' object?#@file_parameters contains object method names foreach my $param (@file_parameters){<br> $current{'file'} -> $param($source_file{$key}->$param);<br> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Object selection query
by Anonymous Monk on Jul 21, 2009 at 10:23 UTC | |
by BioLion (Curate) on Jul 21, 2009 at 10:40 UTC | |
by Kraythorne (Sexton) on Jul 21, 2009 at 11:16 UTC |