in reply to skip newline charater when reading

Remove all newlines in your strings:
while (<F1>) { s/[\n\r]//g print OUT "$_\n"; }

Something like that?

Replies are listed 'Best First'.
Re^2: skip newline charater when reading
by coldy (Scribe) on Jan 13, 2009 at 10:49 UTC
    Thanks that did it!
      When you mentioned that you wanted these "lines" to be "concatenated", what's the delimiter? In other words, what do you want to join them with?

      The trick is to translate all embedded "\n" to the delimiter of your choice. If the delimiter is a single character, you don't really need to use a full-on s///.

      If you wanted the delimiter as nothing:
        s/[\n\r]//g; # suggested by moritz tr/\n\r//d; # does the same

      If you wanted the lines to be joined by horizontal space: