106 reputation
4
bio website
location saint louis, mo
age
visits member for 1 year, 9 months
seen 2 days ago

.

#!/usr/bin/perl
use strict;
use warnings;

package me; 
# brave new world - huxley
# Was and will make me ill. I take a gramme and only am. 

sub exist {
   my $class = shift; 
   bless {'am'=>'kim'}, $class;     
}

sub think {
   my ($self,$thought) = @_;
   $self->{'am'} = 'ill'; 
}

sub take {
   my ($self,$something) = @_;
   $self->{'am'} = undef 
      if ($something =~ /gram(me)?(s)?/i);
}

sub am {
  my $self = shift; 
   print $self->{'am'} 
         if defined $self->{'am'}; 
   print "\n";
} 

my $i = me->exist();  
   $i->think('was');  
   $i->am(); 
   $i->think('will');  
   $i->am(); 
   $i->take('gramme');
   $i->am(); # now nothing

This user has not answered any questions

2 Votes Cast

all time   by type   month  
2 up 0 question 1
0 down 2 answer