in reply to elements of an array

To create the string, use join, as in:
my $string = join('&&', @Product) . ' -' . join('&&', @State);
If create is a function, then
create($string);
-QM
--
Quantum Mechanics: The dreams stuff is made of