programming-examples/perl/Statement/Conditional operator- The unless Modifier and while loop and __DATA__.pl

11 lines
132 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
while(<DATA>){
print unless /N/; # Print line if it doesn't match N
}
__DATA__
A
B
I
N
J
K