On Fri, Jul 16, 2004 at 08:26:40AM -0400, William Goedicke wrote:
> Dear Y'all -
>
> I've been struggling with the following problem. I've got a data
> structure that Dumper displays as:
>
> $VAR1 = {
> 'TARGETTABLE' => {
> 'SOURCETABLE' => [
> {
> 'ID' => 'S1',
> 'NAME' => 'PS_DIVERSITY',
> 'SOURCEFIELD' => [],
> 'DBID' => 'SDB1'
> }
> ],
> 'ID' => 'T1',
> 'NAME' => 'SDM_PERSON_DIM',
> 'DBID' => 'TDB1'
> }
> };
>
> I need to push the following onto the SOURCEFIELD array:
>
> {
> 'NAME'=>$results[0],
> 'ID'=>$id,
> 'TYPE'=>$results[1],
> 'TARGETFIELD'=>$id+100000
> };
push @{$VAR1->{TARGETTABLE}->{SOURCETABLE}->[0]->{SOURCEFIELD}},
{
'NAME'=>$results[0],
'ID'=>$id,
'TYPE'=>$results[1],
'TARGETFIELD'=>$id+100000
};
-Gyepi
--
I am interested in perl/C/unix/DBA/Sys Admin contract work.
Check out my resume http://www.praxis-sw.com/resume.html.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm