Hi brothers and systers!
This is my first experience in Perl Poetry. I don't know, is it successful of not. But I hope that it's nice even just a little :-)

#!/usr/bin/perl -w use strict; use Date; use constant AGE_LOW => 20; use constant AGE_HEIGHT => 30; use constant DELAY => 30; use constant SAFE => 1; my $success; my $me = Me->new(is_married => 0); my $girls = Girls->new(haire => 'brown-haired', eyes => 'brown', heigh +t => 'medium', body => 'slim', temper => 'sweet' ); my $dt = Date->new(); while(my $girl = $girls->next) { if($dt->between(AGE_LOW, AGE_HEIGHT, $girl->age) && !$girl->is_mar +ried) { $success = $girl->invite2date(with => $me, in => 'my home'); next unless $success; $me->clean_home; $me->make_dinner('romantic'); $me->wait_for($girl->time_of_date + DELAY); next if $me->end_of_timeout(); $girl->eat_and_drink(with => $me); $success = $me->try_to_kiss($girl); next unless $success; unless(SAFE) { no strict; $me->make_sex(with => $girl, safe => 'no' ); sleep(23328000); $girl->give_baby($me); } else { $me->make_sex(with => $girl) } if($me->in_love_with($girl)) { $me->get_married(with => $girl); last; } } } $me->go2pub() unless $me->is_married;
      
--------------------------------
SV* sv_bless(SV* sv, HV* stash);

Replies are listed 'Best First'.
Re: Date with girl
by zentara (Cardinal) on Jun 19, 2003 at 15:15 UTC
    if(-e $baby){$me->money = 0}
      LOL, but it's true :). Always use strict; !!!
            
      --------------------------------
      SV* sv_bless(SV* sv, HV* stash);
      
Re: Date with girl
by monsieur_champs (Curate) on Jun 19, 2003 at 19:07 UTC

    Nice poem. I just wonder about what will happen if I try to start a couple of different threads at the same time...

    Congratulations!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Just Another Perl Monk

      I would imagine things would work out fine as long as there was no IPC taking place. ;P

      That would surely crash your computer, unless you have an environment-variable FAITH = ISLAM, then you can have a maximum of three threads.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

        that would be four threads.

        ...unless you're counting from zero? ;-)


        He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

        Chady | http://chady.net/
Re: Date with girl
by kutsu (Priest) on Jun 20, 2003 at 01:06 UTC
    me->go2pub() unless $me->is_married;

    That could be changed to:

    me->go2pub() unless $me->is_dating;

    or at least it could in my case :)

    "Pain is weakness leaving the body, I find myself in pain everyday" -me

      Or in my case:
      me->go2pub() unless (1);

      He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

      Chady | http://chady.net/
      You are right. I will implement method is_dating instead of is_married in the class Me :-)). Thanks.
            
      --------------------------------
      SV* sv_bless(SV* sv, HV* stash);