I only learnt about XML::Twig a week ago, I don't really want to learn about another module so soon just for this subroutine duplication problem. I'll keep XML::Rules in mind for the future though.
Mirod, your solution worked when I changed twig_roots with twig_handlers and replaced my addAtt with your routine. Thanks very much.
In reply to Re^2: XML::Twig creating generic subroutine for attributes
by bladestonight
in thread XML::Twig creating generic subroutine for attributes
by bladestonight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |