What you get if you put { $a = 1 } somewhere, as opposed to the function ref you get from sub { $a = 1 }?
What you get is an anonymous block - it isn't a reference. It is used primarily (by me, anyway) to limit scope. What you call "function refs" are what I would call code refs.
Not sure if this is useful to you or not. Perhaps if you could provide a more fully-fledged example it might help?
🦛
In reply to Re: Aren't there code refs as well as function refs?
by hippo
in thread Aren't there code refs as well as function refs?
by dd-b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |