Hi,
simple experiment where array stores a name of a colour in each element. I want to print colours to error log as blackbluewhiteredyellow on the same line, but this doesnt work correctly, i only see the last colour in the array, it does seem to be writing the other items too but instead of appending it overwrites, any ideas as to what i am doing wrong please?
foreach $c (@Colours)
{
$conc .= $c;
$c = "";
}
print STDERR $conc;
many thanks,
Zac
simple experiment where array stores a name of a colour in each element. I want to print colours to error log as blackbluewhiteredyellow on the same line, but this doesnt work correctly, i only see the last colour in the array, it does seem to be writing the other items too but instead of appending it overwrites, any ideas as to what i am doing wrong please?
foreach $c (@Colours)
{
$conc .= $c;
$c = "";
}
print STDERR $conc;
many thanks,
Zac