http://www.perlmonks.org?node_id=994257


in reply to Re^3: XML::Twig newbie question
in thread XML::Twig newbie question

Depends on the complexity of the subroutine. Maybe you do not want to include all that code in the middle of the loop. I would not sweat over the tiny difference in memory footprint or the cost of two additional subroutine calls. Use whatever makes the code easier to maintain.

Jenda
Enoch was right!
Enjoy the last years of Rome.