#!/usr/bin/perl -w use strict; my $input=<) { chomp; print; } #a,b,c,de,f,g,hi,j,k,l __END__ To convert files from Windows that I transfer to Unix: This seemingly nonsensical program converts the line endings... when reading a Windows file on Unix... while(<>) { chomp; # gets rid of or just or just print "$_\n"; # new line ending is just }