my $sub = Sub sub { my $x = shift; print $x };
Being that I thought { } was the anonymous hash composer. I'm really curious about this though, and syntax reduction in general. Writing things that act like Ruby/Groovy blocks is kind of ugly when you have to use the sub keyword all of the time.
In reply to Re^6: How to de-reference a coderef?
by Anonymous Monk
in thread How to de-reference a coderef?
by AndyH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |