QM has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BEGIN and END with -p or -n
by Fletch (Bishop) on Dec 01, 2005 at 05:02 UTC | |
|
Re: BEGIN and END with -p or -n
by ambrus (Abbot) on Dec 01, 2005 at 08:48 UTC | |
by Tanktalus (Canon) on Dec 01, 2005 at 15:05 UTC | |
by jmcnamara (Monsignor) on Dec 01, 2005 at 15:27 UTC | |
|
Re: BEGIN and END with -p or -n
by sauoq (Abbot) on Dec 02, 2005 at 09:22 UTC | |
by McDarren (Abbot) on Dec 02, 2005 at 10:12 UTC | |
by QM (Parson) on Dec 02, 2005 at 19:54 UTC | |
|
Re: BEGIN and END with -p or -n
by jmcnamara (Monsignor) on Dec 01, 2005 at 15:43 UTC | |
by TimToady (Parson) on Dec 01, 2005 at 16:13 UTC | |
by QM (Parson) on Dec 02, 2005 at 04:28 UTC |