http://www.perlmonks.org?node_id=914061


in reply to nested if else

Your variables will contain newline chars. All your ifs will fail. Try chomp $metric; after you have read something into it.