When you use the -n and -p switches to Perl, BEGIN and END work just as they do in awk, as a degenerate case.Well, that doesn't document anything. And someone is bound to have stopped reading just before this sentence and said, "Try it and see!". To which I reply, "If I have to try it to figure out what it *should* be doing, it's not documented properly!"
Or am I just being AR again?
(BTW, what would perlmod say if it had been written for ARses like me?)
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to BEGIN and END with -p or -n by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |