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

Re: Somersaulting camel

by eyepopslikeamosquito (Chancellor)
on Jun 24, 2002 at 05:44 UTC ( #176694=note: print w/replies, xml ) Need Help??


in reply to Somersaulting camel

Update: The camel now jumps in the air while somersaulting.

camel.pl: (Save all text between the ------ lines below) ------------------------------------------------------------------ ''=~('(?{'.( ('`')| '%').('['^'-'). ('`'|'!'). ('`'|',').'"'.('[' ^'(').('[' ^'.'). ('`'|'"').('{'^'['). '_\\{'.('['^('(')).( '['^'"').('['^('(')).( '['^'/').('`'|"\%").( '`'|'-').'\\$^'.(('`')^ '/').'=~'.('{'^',') .('`'|')').('`'|'.').'?'.( '`'^'#').('`'^ ',').('{'^'(').':'."'".("\`"| '#').('`'|',') .('`'|'%').('`'|'!').('['^"\)"). "'".';'.(('[')^ '+').('['^')').('`'|')').('`'|'.'). ('['^'/').'\\$' .'\\"'.('['^'#').'+'.('`'|'!').(('`')| '"').('['^'('). '(\\$=/'.('^'^('`'|'-')).'*('.('^'^('`'| ',')).'*\\$|-' .'\\$;)),\\$_,\\$/'.('`'|'&').('`'|'/').( '['^')').'\\@' .'_;'.('['^'(').('`'|',').('`'|'%').("\`"| '%').('['^'+').('{'^'[').('^'^('`'|'/')).'\\}'.('`'|'/').( '['^'+').('`'|'%').('`'|'.').'\\$%;'.('`'|'#').('`'|"\(").( '`'|'/').('['^'+').','.('['^'"').',!-~,#,,'.('['^'(').',(' .'.).?,\\$+,'.('`'|"'").('`'|'&').('`'|'/').('['^')').'\\@' .'~='.('`'|"'").('['^')').('`'|'%').('['^'+').('\\$|--,('). "'"."'".')'.('['^'#').('^'^('`'|'/')).(':'&'=').',<'.('^'^ ('`'|'.')).'>;\\@;='.('`'|'-').('`'|'!').('['^('+')). '~' .'~'.('['^')').('`'|'%').('['^'-').('`'|'%').("\["^ ')' ).('['^'(').('`'|'%').','.('['^')').('`'| ('%')).( '[' ^'-').('`'|'%').('['^')').('['^"\(").( '`'|'%' ).+ '\\@' .'~;(\\$;=\\$_%'.('^'^('`'|'-' )).')|' .(( '|')).'(--\\$|,'.('`'|"\-").( '`'|'!' ).( '['^'+') .'\\{\\$_' .'='.( ('[')^ (( ')'))). ('`'|'%' ).('[' ^'-'). +( '`'|'%' ).("\["^ ')'). ('['^ ( '(')). ('`'|'%' ).(( '\\' )).'}' .'\\@~,'. '\\' .'@' .';)' .',_\\$' .';' .'&' .('^' ^("\`"| '/') ).(( '?') ).'\\' .'@' .';' .':' .(( '\\' )).+ '@~' .+( '`' |(( '&' ))) .+( '`' |(( '/' ))) .+( '[' ^(( ')' )) ). '\\$%' .+ (( '.')) .+ (( "\.")).( (( '^' ))^( "\`"| (( '/' )))).( '^'^ ((( '`') )|'/')). '"' .'}' .')'); $:='.' ^'~';$~= '@'|'(' ------------------------------------------------------------------

To run this program, save as camel.pl (say), then:

perl camel.pl

and watch the camel somersault across the screen.

camel.pl above was created with:

perl gencamel.pl >camel.pl

where gencamel.pl is:

use Acme::EyeDrops qw(sightly); my $src = <<'END_SRC_STR'; sub _{system$^O=~Win?CLS:'clear'; print$"x+abs($=/3*(2*$|-$;)),$_,$/for@_;sleep 1} open$%; chop,y,!-~,#,,s,(.).?,$+,gfor@~=grep$|--,('')x18,<0>; @;=map~~reverse,reverse@~; ($;=$_%3)||(--$|,map{$_=reverse}@~,@;), _$;&1?@;:@~for$%..11 END_SRC_STR $src =~ tr/\n//d; my $prog = sightly( { Regex => 1, Compact => 1, Shape => 'camel', SourceString => $src } ); my @a = split(/\n/, $prog); my $max = 0; length > $max and $max = length for @a; $_ .= ' ' x ($max - length) for @a; print " $_ \n" for @a;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176694]
help
Chatterbox?
[holli]: I like the Hipster theorem better
erix scratches his beard
shmem .oO( alternative facts... )
[LanX]: famous exception of fixed orthography is "Thron" (throne) which should be written without h but the Kaiser objected in this case :)
[holli]: Apropos, if the orange baboon really gets us to Mars, all shall be forgiven. I'd even let him grab my mums pussy if that helps :-D
[erix]: huh, we ignored him (well, the one-armed one tha came running here)
[james28909]: another fun thought experiment is... crossing the idea of the double slit experiment with the big bang theory
[erix]: that might unleash quite some energy
[erix]: (eh, I meant the single-slit experiment)
[james28909]: what if our whole universe is the result of someoneviewing the big bang before it happened? and BANG, wave function collapses and all that matter comes out and creates the universe

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2017-12-15 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (436 votes). Check out past polls.

    Notices?