If I do -nle I get a different result than -len. Example: echo ham | perl -nle ' m/^h(.{2})/ ; print "$& and $1"'
output: ham and am
but the same line with -len gives me no output.
The e
means "That which follows is a line of the script".
If you follow the e
with an n
then that is what you are trying to evaluate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With