Hi Perl Monks,
I have a perl query.
I have an array.
@array1 = {"blue","white","yellow"};
i want to add "!" to each element in the array.
and my array should look like,
@array2 = !blue,!white,!yellow without having "," for the last element.
foreach my $temp (@array1) {
push (@array2,"!".$temp.",");
}