<div dir="ltr"><div>This code as it is is useless, unless we print the content or do something before making the copy but can provide a way to to duplicate/reorder stacks.</div><div><br></div><div>Maybe looping over <br></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">  if (defined $xavp(x[$var(i)]))</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:arial,sans-serif"></span></div><div><span style="font-family:arial,sans-serif">Is sufficient, no need to pv_unset</span></div></div>