NetHack::Inventory - the player's inventory
version 0.12
use NetHack::ItemPool; my $pool = NetHack::ItemPool->new; $pool->new_item("x - 3 food rations"); $pool->inventory->get('x'); # NetHack::Item<3 food rations> $pool->new_item("M - a unicorn horn"); # updates (not replaces!) the horn already in M $pool->new_item("M - a blessed unicorn horn"); # replaces the horn in M because it's a different item $pool->new_item("M - a scroll of taming");
To install NetHack::Item, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetHack::Item
CPAN shell
perl -MCPAN -e shell install NetHack::Item
For more information on module installation, please visit the detailed CPAN module installation guide.