Hello! I have a file named file with three lines:
line one
line two
line three
When I do this:
perl -ne 'print if /one/' file
I get this output:
line one
when i try this:
perl -pe 'next unless /one/' file
the output is:
line one
line two
line tree
I expected the same output with both one-liner. Are my expectations wrong or is wrong something else?