Your code looked strange because of all the closures, but in the case of defining simultaneous call backs this looks like the way to go. :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^3: "shift" not working as expected
by LanX
in thread "shift" not working as expected
by ForeverLearning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |