[EMAIL PROTECTED] wrote:
Author: larry
Date: Sun Jun 3 17:23:15 2007
New Revision: 14415
Modified:
doc/trunk/design/syn/S03.pod
doc/trunk/design/syn/S04.pod
doc/trunk/design/syn/S06.pod
Log:
typo from Aaron Crane++
s/cat/list/ for flattening captures in order
cat() now only produces p
Author: larry
Date: Sun Jun 3 17:23:15 2007
New Revision: 14415
Modified:
doc/trunk/design/syn/S03.pod
doc/trunk/design/syn/S04.pod
doc/trunk/design/syn/S06.pod
Log:
typo from Aaron Crane++
s/cat/list/ for flattening captures in order
cat() now only produces pseudo-strings even in list
[EMAIL PROTECTED] writes:
> @@ -562,10 +625,10 @@
> @list xx $count
>
> Evaluates the left argument in list context, replicates the resulting
> -Capture value the number of time specified by the right argument and
> +C value the number of time specified by the right argument and
Presumably
Chas Owens wrote:
The current Perl 5 behavior is
[EMAIL PROTECTED]:~$ perl -le 'my @a = ("-" x 5, "foo", "-" x 5); print "@a"'
- foo -
[EMAIL PROTECTED]:~$ perl -le 'my @a = (("-") x 5, "foo", ("-") x 5); print
"@a"'
- - - - - foo - - - - -
I am against anything other than that for x o
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote:
snip
From what you're saying, I get the impression that you think that "'-'
x 5" ought to produce a single string of five dashes regardless of
whether the context is item or list. Correct? (Note: I'm not asking
about what the spec says, since
Mark J. Reed wrote:
Is "item context" what we're calling scalar these days, or something else?
According to S03, it does indeed appear that "item context" is the
current terminology for what perl 5 called "scalar context":
The item contextualizer
item foo()
The new name for Perl 5's s
Is "item context" what we're calling scalar these days, or something else?
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote:
Chas Owens wrote:
> I am almost certain that the following code is in list context.
>
> pugs> my @a = '-' x 5, 'foo', '-' x 5;
> pugs> @a
> ("-", "foo", "-")
> p
Chas Owens wrote:
I am almost certain that the following code is in list context.
pugs> my @a = '-' x 5, 'foo', '-' x 5;
pugs> @a
("-", "foo", "-")
pugs> my @b = cat('-' xx 5), 'foo', cat('-' xx 5)
("-", "-", "-", "-", "-", "foo", "-", "-", "-", "-", "-")
However, it does seem that Pug'
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote:
Chas Owens wrote:
> Jonathan Lang wrote:
> > Chas Owens wrote:
> > > Jonathan Lang wrote:
> > > > Is there any reason why we can't simply define '$a x $n' as being
> > > > shorthand for 'cat($a xx $n)'? In what way does the former differ
> > >
Chas Owens wrote:
Jonathan Lang wrote:
> Chas Owens wrote:
> > Jonathan Lang wrote:
> > > Is there any reason why we can't simply define '$a x $n' as being
> > > shorthand for 'cat($a xx $n)'? In what way does the former differ
> > > from the latter, other than the use of a Whatever in place of
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote:
Chas Owens wrote:
> Jonathan Lang wrote:
> > Is there any reason why we can't simply define '$a x $n' as being
> > shorthand for 'cat($a xx $n)'? In what way does the former differ
> > from the latter, other than the use of a Whatever in place
11 matches
Mail list logo