in reply to Re^3: problem path stored in hash
in thread problem path stored in hash

Hi, thanks a lot.It really is the '\r'!, I copied the file from windows to linux VM .

chomp() or chop() didn't remove it. now i'm using regex.
Cheers!

Replies are listed 'Best First'.
Re^5: problem path stored in hash
by cdarke (Prior) on Jun 25, 2010 at 11:28 UTC
    If you want chomp to remove the "\r" then:
    local $/ = "\r\n";
    in your subroutine before you read the config file. chop only removes the last character, regardless of what it is.