Hello everyone, I've just recently started using Perl and am having trouble with my first program:
#!/usr/bin/perl print "Press C to continue\n"; $getc = <STDIN>; while ($getc ne 'c') {print "getc is $getc"; $getc = <STDIN>;} print "It worked, finally";
No matter what input I give for $getc, I'm not able to get past the while loop. Thanks in advance for any help.
In reply to Proper use of "EQ" or while loops by rynorx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |