SPUG: flip-flops (was: looking for $variable for multiline print)
dancerboy
dancerboy at strangelight.com
Tue Feb 5 22:24:30 CST 2002
At 4:15 pm -0800 2/5/02, Colin Meyer wrote:
>
>I really like the flip-flop operator. It reminds me of learning boolean
>logic by wiring together nand gates. It's also incredibly useful in
>one liners:
> # print out the contents of <foo> </foo> tags:
> pyx file.xml |perl -ne'print if /^\(foo/../^\)foo/' |pyxw
>
>Have fun,
>-C.
>
Ugh. Reading that section of the docs made my brain hurt. For code
that anyone else is going to have to read, please consider
implementing .. with "normal" boolean operators (and, or, not)
instead. Some language features are best left unused, IMO.
(Remember, TMTOWTDI...)
-jason
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list