develooper Front page | perl.perl6.language | Postings from March 2005

[pugs] array interpolation question

Thread Next
Garrett Rooney
March 5, 2005 08:22
[pugs] array interpolation question
Message ID:
It looks like the current pugs array interpolation doesn't quite match 
the description in S02.

S02 says that container references automatically dereference to the 
appropriate (white space separated) string values, which is fine, pugs 
does that now, but it also says that to interpolate an entire array you 
need to subscript with empty brackets, so if we've got an array @a = (1, 
2, 3) then "@a" eq '@a', but "@a[]" eq "1 2 3", at least from my reading 
of the synopsis.

So what's right, the spec or the implementation?

Assuming the spec is correct, here's a patch to add some more tests to 


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About