in reply to Re^2: command line perl reading from STDIN
in thread command line perl reading from STDIN

The fourth line (i.e. the first line, in fact) is consumed by -n. See perlrun - how to execute the Perl interpreter.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: command line perl reading from STDIN
by perlhappy (Novice) on Jan 22, 2013 at 18:14 UTC
    At the start, its the second line and then every fourth file after. ie line 2, 6, 8, 12 .. eof
    This is what was confusing me but I think I worked it out. See below. Thanks