open FILE, $somefile or die $!; # set input record separator $/ = "\n\n"; # to this $/ = q/"\n"/; # or ?? this while(){ ($a,$b,$c,$d) = split ','; }