Did you "use strict" and "use warnings"?
You are defining the variable $twig in the foreach loop, but trying to access it in the "parse_twig" sub (i.e. out of scope!).
You will save (thanx Jenda ;) a lot of time if you use ALWAYS the "use strict" and "use warnings" pragmas in your scripts.
citromatik
In reply to Re: parsing multiple xml files with xml::twig
by citromatik
in thread parsing multiple xml files with xml::twig
by diomedea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |