#Modifier Meaning
#i Turn off case sensitivity.
#m Treat a string as multiple lines.
#o Compile pattern only once.
#s Treat string as a single line when a newline is embedded.
#x Permit comments in a regular expression and ignore whitespace.
#g Match globally; i.e., find all occurrences.
while(<DATA>){
print if /B/; # Print the line if it matches B
}
__DATA__
S
B
I
N
J
K