in reply to perlrun: -a implicitly sets -n

Update: I just looked, and the first version I can find that this was introduced is in v5.20.0, here, so you probably are on v5.18.0 or earlier.

Which version of perl, and in which version of perlrun did you glean that from? I'm on v5.22.0.

steve@spek ~/scratch $ perl -wMstrict -M5.010 -ae 'say $F[0]' test.dat foo baz

Replies are listed 'Best First'.
Re^2: perlrun: -a implicitly sets -n
by 1nickt (Canon) on Jul 30, 2015 at 23:41 UTC

    Thanks stevieb and browseruk, indeed, I am on 5.16.0, and the perlrun I consulted was the on-line version. I'll submit a patch with a note.

    The way forward always starts with a minimal test.

      Hey 1nickt, the online version (by default) is v5.22.0. The v5.16.0 version doesn't have that info, so I don't know if a patch is necessary.

      Can you post a link to the version of perlrun you found this in, just to be sure?