Copy Vector Value Between Objects?

What is a simple method to copy the rotation of one object to another?
I would think it would be something like this, but it fails:
CODE
float $tmpBox1Rotn[] = getAttr "Box1.rotate";
setAttr "Box2.rotate" -type "double3"  $tmpBox1Rotn;
// Error: line 2: Error reading data element number 3:  //

Thanks.

Learned this today: copy 3 attributes from 1 channel to another:
CODE
for ($cur in ls -sl);
   {
   float $jo[] = getAttr ($cur + ".jo");
   float  $r[] = getAttr ($cur + ".r");

   setAttr ($cur + ".r") 0 0 0; // .r requires a triple value
   setAttr ($cur + ".jo") $r[0] $r[1] $r[2];
   }