in reply to next unless not working
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,
🐻
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: next unless not working
by choroba (Cardinal) on Feb 05, 2025 at 17:27 UTC |