I believe you might want to check out the
tie function. You could tie
@bit to a package with (amongst others) a
STORE subroutine, that checks whether you're altering elements 9 or 10. Check out the
perltie documentation, it's quite illuminating.
[ ar0n -- want job (boston) ]