Bennett Todd <[EMAIL PROTECTED]> writes: > The poster you are replying to said "I use this in one-liners, and it's > _dead_ handy."; that conjures up the idioms like > perl -nle 'print if 1.. ?^$?' [filename] > which barfs out only the header; replace "if" with "unless" and it > chops the head off. Why do you need one-time matching here? /^$/ should work fine. I've very rarely found cases where ?? was useful and // didn't work, and never in regular code. -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
- Re: Things to remove Bryan C . Warnock
- Re: Things to remove Larry Wall
- Re: Things to remove Dan Sugalski
- Re: Things to remove Martyn J. Pearce
- Re: Things to remove Leon Brocard
- Re: Things to remove Piers Cawley
- Re: Things to remove Bryan C . Warnock
- Re: Things to remove Ted Ashton
- Re: Things to remove Bennett Todd
- Re: Things to remove Hildo Biersma
- Re: Things to remove Russ Allbery
- Re: Things to remove Tom Christiansen
- Re: Things to remove Larry Wall
- Re: Things to remove Bart Lateur
- Re: Things to remove Bryan C . Warnock
- Re: Things to remove Mike Pastore
- Re: Things to remove Casey R. Tweten
- Re: Things to remove Steve Simmons
- Re: Things to remove Nathan Torkington
- Re: Things to remove Damian Conway
- Re: Things to remove Larry Wall