Thanks for the help. Sam got it, in my quickie testing I failed to add use strict, lesson learned. Jason, I am all for using CPAN modules, but that name didn't lend itself to me finding it, and I am not sure loading another module to save 8-10 lines of code was worth it in this case.