G
Graham Wood
I have a function that accepts an array reference as an argument and
returns 2 array references. I'm "dclone"ing the references so that when
I call the function again I'm not using the same references again. As in ...
=========================================================
($ref1,$ref2)=return_2_refs($input_ref1);
$ref3=dclone($ref1);
$ref4=dclone($ref2);
($ref5,$ref6)=return_2_refs($input_ref2);
=========================================================
Can anyone tell me how to incorporate the dclone into this line:
($ref1,$ref2)=return_2_refs($input_ref1);
So that I don't have to create the extra $ref3 and $ref4?
I tried ($ref1,$ref2)=dclone(return_2_refs($input_ref1));
but that gave me nothing in $ref1.
Thanks in advance
Graham
returns 2 array references. I'm "dclone"ing the references so that when
I call the function again I'm not using the same references again. As in ...
=========================================================
($ref1,$ref2)=return_2_refs($input_ref1);
$ref3=dclone($ref1);
$ref4=dclone($ref2);
($ref5,$ref6)=return_2_refs($input_ref2);
=========================================================
Can anyone tell me how to incorporate the dclone into this line:
($ref1,$ref2)=return_2_refs($input_ref1);
So that I don't have to create the extra $ref3 and $ref4?
I tried ($ref1,$ref2)=dclone(return_2_refs($input_ref1));
but that gave me nothing in $ref1.
Thanks in advance
Graham