Perl: join()
join()
join() does the opposite of split() - it takes a list of strings and joins them all together, separated by a delimiter string
$fname = "Eric"; $lname = "Larson"; etc...
$line = join(":",$fname,$lname,$address, $city, $state, $zip);
# $line is now: "Eric:Larson:15 Shady Lane:North Smithfield:RI:02896"