Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Golfing

by choroba (Canon)
on Sep 02, 2013 at 22:29 UTC ( #1051990=note: print w/ replies, xml ) Need Help??

in reply to Re: Golfing
in thread Golfing


1 2 3 4 5 6 + 7 8 12345678901234567890123456789012345678901234567890123456789012345 +678901234567890123456 perl -e'use Time::HiRes"usleep";$|=1;{print+(int rand 9)%2?"wub ":"woo +o ";usleep 1e5;redo}'
Update: Or even 69:
perl -e'$|=1;{print+(int rand 9)%2?"wub ":"wooo ";select$u,$u,$u,.1;re +do}'
Update: 64, thanks hdb:
perl -e'$|=1;{print rand(9)%2?"wub ":"wooo ";select$u,$u,$u,.1;redo}' 1 2 3 4 5 6 1234567890123456789012345678901234567890123456789012345678901234
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re^2: Golfing
Select or Download Code
Replies are listed 'Best First'.
Re^3: Golfing
by hdb (Prior) on Sep 03, 2013 at 06:40 UTC

    int is not needed.

[untitled node, ID 1052206]
by perlaintdead (Scribe) on Sep 04, 2013 at 03:56 UTC

    Doesn't catch the first "w" but here is a slight variation.

    select$u,$u,$u,.1while$|=print rand>5/9?ub:ooo,$".w

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-11-28 22:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls