Almost there. You just need to dereference $func.
Replace:
return grep $func, @$arr_ref;... with:
return grep &$func, @$arr_ref;($func is a reference, and so always true.)
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re^2: How to pass blocks to subroutines
by Sidhekin
in thread How to pass blocks to subroutines
by neniro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |