in reply to Is garbage collection the end?

if (@tree =~ /falls/ and $no_one =! /hears/){ $_ =~ /a sound?/; };

The Autonomic Pilot; it's FunkyTown, babe.

Replies are listed 'Best First'.
RE: JAPK (just another perl koan)
by ar0n (Priest) on Jun 28, 2000 at 17:38 UTC
    Sorry, I'm a nitpicker.
    Guess it's my INTP personality.

    OO Koan:
    if( $forest{trees}[rand]->falls() and not $one->hears() ) { /sound/ ? true : false; }

    -- ar0n
      Yesh! Very cool. I'm not a very OO kinda guy, but I think this suits the koan nicely. (tangent: I learned a little Japanesse a time ago, and was really struck by how OO that language is. Coincidence? I think you've struck something of-the-essence here, son.)

      The Autonomic Pilot; it's FunkyTown, babe.

      I've been thinking and the Kloan should read: "...no one is there to hear it" So:
      if( $forest{trees}rand->falls() and !defined($forest{people}) { $_ =~ /sound/ ? true : false; }
        I'm replying to myself because my post looked so poor.
        if($forest{trees}rand->falls() 
        	and !defined($forest{people})
        {
           $_ =~ /sound/ ? true : false;
        }