in reply to delete last CR and LF from txt
mph151:
Perhaps the simplest way is to:
Note: the first word of each line is the name of the perl function that does the job.
...roboticus