Most likely a difference in line end characters. "DOS" uses crlf where *nix uses lf and Mac uses cr.
chomp (by default) removes the line end sequence used by the host OS so if you are running *nix and you have a file containing crlf line ends then you will get the cr left at the end of the line causing the password match to fail.
In reply to Re^3: Unable to run or troubleshoot a script...
by GrandFather
in thread Unable to run or troubleshoot a script...
by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |