develooper Front page | perl.perl6.compiler | Postings from May 2012

[perl #65654] Texas quotes do The Wrong Thing when interpolating vars with strings with spaces in them in Rakudo

Thread Previous | Thread Next
From:
Will Coleda via RT
Date:
May 27, 2012 20:29
Subject:
[perl #65654] Texas quotes do The Wrong Thing when interpolating vars with strings with spaces in them in Rakudo
Message ID:
rt-3.6.HEAD-5009-1338175755-554.65654-15-0@perl.org
On Sun Jan 30 22:14:47 2011, coke wrote:
> On Thu May 14 07:48:19 2009, masak wrote:
> > <pmichaud> rakudo:  my $foo = 'hello world';   say «$foo».elems
> > <p6eval> rakudo 705cb2: OUTPUT«1␤»
> > <pmichaud> oops.
> > <pmichaud> oh well :-)
> > <moritz_> it's not yet christmas ;-)
> > * masak submits rakudobug
> > 
> > Expected value from the evaluation: 2, because "hello" and "world"
> > should end up as different elements.
> 
> Misbehavior has changed:
> 
> 01:11 <[Coke]> rakudo: my $foo = 'hello world'; say «$foo».elems
> 01:11 <p6eval> rakudo 549d2a: OUTPUT«===SORRY!===␤Can't form :w list from 
>                non-constant strings (yet) at line 22, near ".elems"␤»

Behavior's the same, but the error changed:

> my $foo = 'hello world'; say «$foo».elems
:w list value must be known at compile time


-- 
Will "Coke" Coleda

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About