$resp = <>; is reading the next line in the next file in @ARGV, not from STDIN. You probably mean $resp = <STDIN>; there.
See "I/O Operators" in perlop to see exactly what <> is doing.
In reply to Re: Reading from STDIN
by holo
in thread Reading from STDIN
by unstable_geek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |