Damian Conway <[EMAIL PROTECTED]> writes: > Michael Lazzaro wrote: >> Which, in turn, implies that the lines: >> my Foo $a; # (1) >> my $a is Foo; # (2) >> my Foo $a is Foo; # (3) >> are all subtly different. (2) and (3) (auto)instantiate a Foo, but >> (1) does not. > > Correct. Though the instantiated Foo is the "implementation object" and > not directly accessible (just as the implementation object in a Perl 5 > tie isn't). > > BTW, C<my Foo $a is Foo> is just sick! > (i.e. I'll *definitely* be using it ;-)
Surely anyone who does C<< my Array @foo >>, or C<< my Scalar $foo >> will be using it, albeit indirectly.