Thanks for your detailed comments. pilot-link *almost* does what I want; sounds like I should quit while I'm ahead. But I may try again to use perl, and if I have any luck, I'll report back.