in reply to Re^4: Extracting Unique elementsin thread Extracting Unique elements
Just use join instead of a loop:
print FH ref($bar) eq "ARRAY" ? join(',', @$bar) : $bar;
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (294 votes). Check out past polls.