Roger Roelofs asked:
I'm somewhat familiar with perl, but I've never seen 'if /^NOTE/../ ^X-Palm/' before. Where can I find it in the docs?
You can see an explanation of this "flip-flop" operator with some nice examples via
perldoc perlop
Search for "Range Operators".
Cheers, Paul