I've got the following respectable perl script x.pl:
#!/usr/bin/env -S perl -Mstrict -wp
s/a/b/;
If I run it with either ./x.pl or perl x.pl, it bombs out with
Too late for "-Mstrict" option at ./x.pl line 1.
But... why? I thought "too late..." was only a problem with the likes of -CSDA or -T, because "the streams are already open". Besides, doesn't the shebang line actually simply invoke perl with the specified switches?