open (INPUTFILE, "< $filein"); while () { my $line=$_; $line =~ s/\),\(/\)\n\(/gi; };