in reply to Transform hash elements into a string
In this case join is clearly more indicated however, sometimes I construct csv strings by appending to it (conditionally) values like "xxx," then "yyy," repeatedly. (As you cannot know which one will be the last, you cannot afford not to have the commas after each one.)
In this case, a simple chop after will do the trick:
[...] chop($param_string); print "\n$param_string\n";
Cheers
|
|---|