Author: autrijus Date: Sat Apr 1 11:56:07 2006 New Revision: 8527 Modified: doc/trunk/design/syn/S02.pod
Log: * Fix typo as reported by Joe Gottman. Explicitly specify the rvalue-ness, interpolated-ness, and default-to-match-object-ness of prefix sigil operators. Modified: doc/trunk/design/syn/S02.pod ============================================================================== --- doc/trunk/design/syn/S02.pod (original) +++ doc/trunk/design/syn/S02.pod Sat Apr 1 11:56:07 2006 @@ -399,11 +399,16 @@ $$args; # same as "$args as Scalar" or "Scalar($args)" @$args; # same as '$args as Array" or "Array($args)" %$args; # same as '$args as Hash" or "Hash($args)" - &$args; # same as '$args as Code" or "Hash($args)" + &$args; # same as '$args as Code" or "Code($args)" Casted as an array, you can access to all positionals. Casted as a hash, all nameds. As a scalar, the invocant. As a code, the slurpy nameless block. +All prefix sigil operators accept one positional argument, evaluated in +scalar context as a rvalue. They can interpolate in strings if called with +parentheses. The C<$()>, C<@()> and C<%()> forms defaults to C<$/> as the +implicit argument. + =item * A signature object (C<Signature>) may be created with coloned parens: