in reply to Embedded POD
OK - Rule Number 1 - when something bizaire happens with text processing tools, always, always, always check that it's not something to do with the end of line character(s)!
Many thanks for the help I received in the CB, but it turned out to be the \r\n line endings which was causing the problem. Now, perhaps if I hadn't just switched from using vi to emacs, I might have noticed that!
Pete
In Section
Seekers of Perl Wisdom