[EMAIL PROTECTED] wrote:
>
This is the bit of code I'm attempting to use,
"$workPackages{ $tempHash{ WORK_PACKAGE } }
{ $tempHash{ USE_ON_CODE } } = $tempHash{ TECHNICAL_DIRECTIVE };" I
get the following error, "Can't use string ("1") as a HASH ref while
"strict refs" "
Is this because the value stored needs to be the reference to the new
hash? If so, how do I do this? Do I need to reset the original hash
value from 1 to null?
You're assigning the value of
$tempHash{TECHNICAL_DIRECTIVE}
to
$workPackages{$tempHash{WORK_PACKAGE}}->{$tempHash{USE_ON_CODE}}
and the error is because
$workPackages{$tempHash{WORK_PACKAGE}}
has the value 1 instead of being a hash reference.
There's little here to help me guess what has gone wrong. Can you tell
us more about your data structures and how they have been built please?
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/