Another way would be to make the subroutine curried (that is expecting to get the parameters separately, not all at once):
Sure, you could write your closure that way ( the schönfinkeling way), but it gains you nothing in this example, it just takes a little more memory
In reply to Re^3: XML::Twig newbie question
by Anonymous Monk
in thread XML::Twig newbie question
by slugger415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |