Skip to content

Instantly share code, notes, and snippets.

@0branch
Created April 2, 2011 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0branch/899648 to your computer and use it in GitHub Desktop.
Save 0branch/899648 to your computer and use it in GitHub Desktop.
entry.pl, first draft
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use Object;
use Player;
my $lamp = Object->new(name => "lamp");
my $player = Player->new;
say $player->list_inventory;
$player->obtain($lamp);
say $player->list_inventory;
# but:
$player->obtain($player);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment