This code isn't working for me. All I want to do is read in a string and print it out again until the user types "quit". It reads and prints but never hits true on the while condition. This should be very simple, but I can't figure out what I'm doing wrong. If it helps, I'm using Active Perl 5.12
#!/c:\perl64\bin
do
{
print "Enter an address, QUIT to exit\n";
my $test = <STDIN>;
chomp($test);
print "$test\n";
} while (lc($test) ne "quit");