my @fld = map /=s*(.+)/, /\b +\b/g; print join( ',', @fld ), "\n"; #### my @fld = map /=\s*(.+)/, split /\b +\b/; print join( ',', @fld ), "\n";