in reply to Reading Multiple lines

This does work but may not be suitable if lots of data. It may help I hope.
#!/usr/local/bin/perl -w use strict; $/ = "FDJK"; # sets end on input line to nonsence my $data = <DATA>; print "$data\n\n"; $data =~ s/([^"])\n/$1 /msxg; $data =~ s/(\w) "/$1"/; print $data; __END__ "data","data","data", "data" "data","data with new line " "data" "data","data,"data","data"

Replies are listed 'Best First'.
Re^2: Reading Multiple lines
by mick2020 (Novice) on Oct 15, 2008 at 10:06 UTC
    Thanks for your reply, 
    I was thinking of doing something similar, but as you said it is not advisable with large amounts of data