Silly Perl and \n

Wasted 45 minutes of my morning trying to troubleshoot why in the hell Net::FTP wouldn't put the file I wanted it to. Turns out I was trying to cwd to a directory with a \n on the end of it. It wouldn't fail on the cwd, but on the put command. Soon as I chomped the var with the directory name in it, it worked like a charm. I hate computers!

Mad props to Whitaker for helping me out.
Leave A Reply
All content licensed under the Creative Commons License