Hi,
Many thanks Michael, this is very useful, really. I had lost all the
OO discussion and this document is very helpful.
I really like the part of context transformations, I hope something
like this gets in.
Just a silly note:
> Recipe 1.9: Using Subroutines as Objects
>
> Problem:
> You want to use a subroutine as if it were an object.
>
> Solution:
> Just do it:
> sub mysub { ... };
> my $var = mysub.foo;
>
I think it was said that the way to avoid the ambiguity here is to add
& to sub name.
For example:
my $var = &msyub.foo; # call foo method on &mysub object
my $var2 = mysub.foo; # equivalent to mysub().foo()
Best,
-angel