in reply to pdb spliting

This response directs itself to your second question.

Your code passes a syntax check... that is to say, my Perl (5.016) detects no syntax errors.

However, your code suffers from several shortcomings:

Turning to your post, itself:

I know -- off the top of my head -- of at least three diffent ways that the file extension ".pdb" is used -- Palm dbs, C++ debugging, and "Protein Data Bank" data. You really should specify as it's unreasonable to expect the Monks will be able, magicly, to infer which you mean.

And, returning to your second question ("(i)s THIS code is correct...." (sic)) that's easy enough to determine pragmatically: Try it to see. Somehow, I suspect that's not your real question, but, again, you can't expect magic inferences about your actual intent.