On 5/23/06, Chris Yocum <[EMAIL PROTECTED]> wrote:

1|2|3

I would say something like:

print $array[0] . "|" . $array[1] . "|" . $array[2] . "\n";

not the best way but it works.

In Perl6 if say something like this:

print @array[0] ~ "|" ~ @array[1] ~ "|" ~ @array[2] . "\n";

I get

1 2 3 | | |

My question is: why is it doing that or, more to the point, what am I
doing wrong?


I am not sure, maybe the . before "\n" cause the problem but why not try this
one:

my @array = (1, 2, 3);
say join "|", @array;

Gabor

Reply via email to