in reply to Can't modify non-lvalue subroutine call in chomp
I wonder how it can work. chomp returns number of deleted characters. Do you really want to $credentials have this numeric value?