Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl: the Markov chain saw
 
PerlMonks  

Poor Man's Abstain

by sauoq (Abbot)
on Aug 12, 2003 at 02:22 UTC ( #283084=snippet: print w/ replies, xml ) Need Help??

Description:

Choose how to vote on those nodes where you really just want to see the node rep...

Make it an alias for ease of use.

Update: Added alternate versions. Choose the one that matches your style!



perl -e 'die rand(2)%2?"--":"++",$/'


perl -e 'die qw(- +)[rand(2)]x2,$/'


perl -e 'die rand>.5?"--":"++",$/'


Comment on Poor Man's Abstain
Download Code
Re: Poor Man's Abstain
by jmcnamara (Monsignor) on Aug 12, 2003 at 08:25 UTC

    Another (pseudo-pseudo-random) way:
    perl -le 'print+time%2?"--":"++"'
    Or if you weren't doing all of your voting at the same time:
    perl -le 'print$$%2?"--":"++"'
    Anyone who has never voted on a node just to see its rep feel free to ignore this one as well, or use the following instead:
    perl -le 'print pack h2h2,b2,b2'

    --
    John.

Re: Poor Man's Abstain
by DrHyde (Prior) on Aug 12, 2003 at 08:27 UTC
    Please don't!

      Ok, I'll heed that advice this one time. I downvoted you deterministically.

Back to Snippets Section

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: snippet [id://283084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2013-05-23 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (473 votes), past polls