On Friday, July 16, 2004, at 08:26 AM, William Goedicke wrote:
I need to push the following onto the SOURCEFIELD array:
{ 'NAME'=>$results[0], 'ID'=>$id, 'TYPE'=>$results[1], 'TARGETFIELD'=>$id+100000 };
I think what you want is this: push @{$VAR1->{SOURCETABLE}}, { 'NAME'=>$results[0], 'ID'=>$id, 'TYPE'=>$results[1], 'TARGETFIELD'=>$id+100000 };
based on this rule in the perlref man page:
2. Anywhere you'd put an identifier (or chain of identifiers) as part
of a variable or subroutine name, you can replace the identifier
with a BLOCK returning a reference of the correct type.
so "push @simplevar, @stuff" becomes "push @{$ref}, @stuff", and then "$ref" can be replaced with something as complex as needed.
_______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

