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.

Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
Logged IP:
To prevent spam please submit by clicking the kitten: