in reply to Re: a q-n-d csv_join function
in thread a q-n-d csv_join function

my @x is unnecessary - map copies on its own

map in the example modifies $_ and @_ is an alias to the original array so you need the copy in order not to modify the original array passed to the subroutine.