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


in reply to How do I write subs that take bare blocks as args?

By the way, if you use a & prototype, you can still only use a bare block as the first argument - for the other arguments you have to supply a coderef by using sub { ... }. I have written a module that can optionally bypass this restriction using Filter::Util::Call - you might want to take a look at this.
-- Joost downtime n. The period during which a system is error-free and immune from user input.