Yet another thing: $_ in your loop will contain the line separator and will therefore never be equal to "Java".
You may chomp the input or perform a regex match /^Java$/ instead of $_ eq "Java"
Greetings,
🐻
In reply to Re: next unless not working
by jo37
in thread next unless not working
by anitaord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |