Author: lwall Date: 2009-06-10 10:07:58 +0200 (Wed, 10 Jun 2009) New Revision: 27054
Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] dwim on things like: say "Foo = $foo."; Modified: docs/Perl6/Spec/S12-objects.pod =================================================================== --- docs/Perl6/Spec/S12-objects.pod 2009-06-10 00:15:48 UTC (rev 27053) +++ docs/Perl6/Spec/S12-objects.pod 2009-06-10 08:07:58 UTC (rev 27054) @@ -12,8 +12,8 @@ Maintainer: Larry Wall <la...@wall.org> Date: 27 Oct 2004 - Last Modified: 9 Jun 2009 - Version: 84 + Last Modified: 10 Jun 2009 + Version: 85 =head1 Overview @@ -273,6 +273,17 @@ $obj!"$methodname" # indirect call to private method name +Within an interpolation, the double-quoted form may not contain +whitespace. This does what the user expects in the common case of +a quoted string ending with a period: + + say "Foo = $foo."; + +If you really want to call a method with whitespace, you may work +around this restriction with a closure interpolation: + + say "Foo = {$foo."a method"}"; # OK + [Note: to help catch the mistaken use of C<< infix:<.> >> as a string concatenation operator, PerlĀ 6 will warn you about "useless use of quotes" at compile time if the string inside quotes is an identifier.