It's great - I forget about the Perl examples - I wonder if that culture's even going on at the moment.

- Alan


On Mon, 21 Sep 2009, Pall Thayer wrote:

But I don't think the code actually rhymed.

This was actually put to me as a challenge by a friend. He didn't
specify that actually had to do anything worth while and it doesn't.
But it's syntactically correct, runs without error but doesn't produce
any output. When making it, I wasn't producing it specifically to be
part of the Microcode selection but it's an interesting experiment so
I added it to the site.

best r.
Pall

oh... ps. I made a slight mistake in the "read" example. It should of
course be "If two equals two OR love matches u", not "AND love matches
u". This makes a big difference since it means that the code within is
executed but what is after the "else" statement is not. Otherwise it
would produce output.

On Mon, Sep 21, 2009 at 3:28 PM, Alan Sondheim <[email protected]> wrote:


Great - this reminds me of perl poetry, at the end of Larry Walls' book
(think I have the right name) - ALan


On Mon, 21 Sep 2009, Pall Thayer wrote:

Two or Love

#!/usr/bin/perl
if(2 == 2 || 'love' =~ /u/){
       $two = 1 unless $none;
       while($beef || $pork){
               sleep(11) && fork();
       }
}else{
       sleep(22) && print "fun";
}

(
read:
if two equals two
and love matches u
two equals one
unless none
while beef or pork
sleep eleven and fork
else sleep twenty-two and print fun
)
--
*****************************
Pall Thayer
artist
http://www.this.is/pallit
*****************************
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour




==
current text file: http://www.alansondheim.org/qg.txt
sondheim mail-text archive: http://sondheim.rupamsunyata.org/
webpage http://www.alansondheim.org sondheimat gmail.com, panix.com
==
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour




--
*****************************
Pall Thayer
artist
http://www.this.is/pallit
*****************************
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour




==
current text file: http://www.alansondheim.org/qg.txt
sondheim mail-text archive: http://sondheim.rupamsunyata.org/
webpage http://www.alansondheim.org sondheimat gmail.com, panix.com
==
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to