This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Improve the tests for the -n and -p switches.
authorNicholas Clark <nick@ccl4.org>
Sun, 26 Feb 2012 13:15:02 +0000 (14:15 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 27 Feb 2012 10:17:21 +0000 (11:17 +0100)
commitc1c954ee5d95900533d4ab0785198b373fdb7fb8
treeacc59f6b775bacbe86209e1929023d39150a2f4b
parent901455ecceca122044b675aeea6938e5a510ebb4
Improve the tests for the -n and -p switches.

Verify that -p actually runs the code in the program body.
Verify that -n doesn't implicitly print out the contents of $_.
For both, verify that an END block runs after the implicit loop.
t/run/switchn.t
t/run/switchp.t