in reply to Is this code correct
you probably(?) want $a //= $sixth;
i.e. $a = $sixth if not defined $a;
Cheers Rolf (addicted to the Perl Programming Language :) Wikisyntax for the Monastery