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

Re: Golfing dubstep.pl

by toolic (Bishop)
on Sep 02, 2013 at 21:15 UTC ( #1051982=note: print w/replies, xml ) Need Help??


in reply to Golfing dubstep.pl

100

Replies are listed 'Best First'.
Re^2: Golfing dubstep.pl
by choroba (Chancellor) on Sep 02, 2013 at 22:29 UTC
    86
    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
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      int is not needed.



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

      select$u,$u,$u,.1while$|=print rand>5/9?ub:ooo,$".w
Re^2: Golfing dubstep.pl
by perlaintdead (Scribe) on Sep 02, 2013 at 21:27 UTC

    after research this has by far the weirdest operator i've seen

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051982]
help
Chatterbox?
[dazz]: Hi I have grabbed an image from an IP camera with Image::Grab. I then want to pass that image object to a subroutine where I do a read-only test on the image with Image:Magick.
[dazz]: How do I pass an image object to a subroutine and then apply a Image::Magick a read-only method to the image object???
[dazz]: Also, I want to use Image::Magick to annotate and composite (not in a sub). How do I take a Image::Grab object and apply Image::Magick write methods to it??
[dazz]: At present, I am saving the Image::Grab image to disk, then creating a new Image::Magick object that reads the disk file.
[dazz]: .
[choroba]: Discipulus Sounds interesting. Any pictures of the puppets or paintings?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-03-27 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (317 votes). Check out past polls.