It would be helpful to see the error you are getting when you try to change the element. It's much harder to help you if we can't see exactly what's going wrong. Especially since you're running this under TeamSite and it doesn't seem like the TeamSite Modules are on the CPAN. Also are you using
strict and
warnings (-w)? If not, use them, learn to love the pain.
Get Strong Together!!