$_
while (<>) { chop; # 最後の \n を取る @array = split(/:/); ...
chop($cwd = `pwd`); chop($answer = <STDIN>);
chop