CPAN RT

demorse reads morse from files,
(or from standard input if no files are given),
and translates it back to text.
Morse can be given in either short (-- --- .-.
...
.) or long form (daw daw,
daw daw daw,
dit daw dit,
dit dit dit).
In the short form,
letters are separated by spaces,
and words by 2 spaces (or the morse symbol for space).
In the long form,
letters are separated by 2 spaces,
and words by 3.
As a special features,
demorse parses the output of morse(6),
which writes each letter on a comma terminated line.

Short and long form can be mixed,
as well as morse(6) format and space separated letters.

Any characters that can't be interpreted as part of the morse sequence is copied untouched.
The program will die when encountering a series of dots and dashes that it cannot translate.