Perl won't run a module twice, but when running a .pm as a script, it doesn't count as module. In other words, your module is fine. It's how you run it that's broken.
Replace
perl -c TestVar.pm
with
perl -ce "use TestPm"
to fix the problem.
However, I think there's a design problem when two modules include each other.
In reply to Re^2: Subroutine redefined
by ikegami
in thread Subroutine redefined
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |