A random guess. One copy had DOS line endings, one had Unix. This is a problem because "/usr/bin/perl" is an executable on your system, but "/usr/bin/perl\r" isn't...
I was using cuteftp which normally converts them, and beyond that, TextPad which I have setup to write in UNIX format. Thanks for the suggestion though.
My code doesn't have bugs, it just develops random features.