Larry Wall schreef:
Ruud H.G. van Tol:
Uri Guttman:
When cast into an array, you can access all the positional
arguments; Into a hash, all named arguments; Into a scalar, the
invocant; Into code, into slurpy nameless block.
The last 'into' should be 'the'.
And it has become 'its', which
Author: autrijus
Date: Sat Apr 1 10:32:53 2006
New Revision: 8520
Modified:
doc/trunk/design/syn/S02.pod
Log:
* S02: destill the compoments of an Arguments object, and
specify the $() @() %() () casting forms for them.
Modified: doc/trunk/design/syn/S02.pod
-Original Message-
+You may cast CArguments to other types with a prefix sigil operator:
+
+$args = \3; # same as $args = \(3)
+$$args; # same as $args as Scalar or Scalar($args)
+@$args; # same as '$args as Array or Array($args)
+%$args;
a == autrijus [EMAIL PROTECTED] writes:
a +You may cast CArguments to other types with a prefix sigil operator:
a +
a +$args = \3; # same as $args = \(3)
a +$$args; # same as $args as Scalar or Scalar($args)
a +@$args; # same as '$args as Array or
Uri Guttman wrote:
When cast into an array, you can access all the positional
arguments; Into a hash, all named arguments; Into a scalar, the
invocant; Into code, into slurpy nameless block.
The last 'into' should be 'the'.
s/Into/into/g
--
Affijn, Ruud
On Sun, Apr 02, 2006 at 02:15:46AM +0200, Ruud H.G. van Tol wrote:
: Uri Guttman wrote:
:
: When cast into an array, you can access all the positional
: arguments; Into a hash, all named arguments; Into a scalar, the
: invocant; Into code, into slurpy nameless block.
:
: The last