Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::attributehelpers::trait::collection::hash(3pm) [debian man page]

MooseX::AttributeHelpers::Trait::Collection::Hash(3pm)	User Contributed Perl Documentation MooseX::AttributeHelpers::Trait::Collection::Hash(3pm)

NAME
MooseX::AttributeHelpers::Collection::Hash - Hash attribute SYNOPSIS
package Stuff; use Moose; use MooseX::AttributeHelpers; has 'options' => ( metaclass => 'Collection::Hash', is => 'ro', isa => 'HashRef[Str]', default => sub { {} }, provides => { 'set' => 'set_option', 'get' => 'get_option', 'empty' => 'has_options', 'count' => 'num_options', 'delete' => 'delete_option', } ); DESCRIPTION
This module provides a Hash attribute which provides a number of hash-like operations. See MooseX::AttributeHelpers::MethodProvider::Hash for more details. METHODS
meta method_provider has_method_provider helper_type BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2007-2009 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-02 MooseX::AttributeHelpers::Trait::Collection::Hash(3pm)

Check Out this Related Man Page

MooseX::AttributeHelpers::Trait::Collection::ImmutableHaUserpContributed Perl DocumMooseX::AttributeHelpers::Trait::Collection::ImmutableHash(3pm)

NAME
MooseX::AttributeHelpers::Collection::ImmutableHash - immutable HashRef attribute SYNOPSIS
package Stuff; use Moose; use MooseX::AttributeHelpers; has 'options' => ( metaclass => 'Collection::ImmutableHash', is => 'ro', isa => 'HashRef[Str]', default => sub { {} }, provides => { 'get' => 'get_option', 'empty' => 'has_options', 'keys' => 'get_option_list', } ); DESCRIPTION
This module provides a immutable HashRef attribute which provides a number of hash-line operations. See MooseX::AttributeHelpers::MethodProvider::ImmutableHash for more details. METHODS
meta method_provider has_method_provider helper_type BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2007-2009 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-02 MooseX::AttributeHelpers::Trait::Collection::ImmutableHash(3pm)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

Compression algorithm( usage of Hash tables)

Hi All, i was browsing thru' the opensource glib(deflate/inflate) algorithms.. which i am supposed to implement. I came across Dictionary usage (Hash tables), LZ77 algorithm and Huffman coding in that.. i couldn't follow on the Hash table implementation in that. Anybody there to give some... (5 Replies)
Discussion started by: rvan
5 Replies

2. Shell Programming and Scripting

populate PERL Hash

Hello I am new to perl and learning ...can you please explain why am i getting this error...as myHash is defined right above the code and I think it should be avilable in the sub function. Here is my code: <code> #!/usr/bin/perl use warnings; use strict; %myHash=(); sub... (2 Replies)
Discussion started by: uandme2k2
2 Replies

3. Shell Programming and Scripting

PERL: reading 2 column data into Hash file

I am trying to read in a 2 column data file into Perl Hash array index. Here is my code. #!/usr/bin/perl -w use strict; use warnings; my $file = "file_a"; my @line = (); my $index = 0; my %ind_file = (); open(FILE, $file) or die($!); while(<FILE>) { chomp($_); if ($_ eq '') { ... (1 Reply)
Discussion started by: subhap
1 Replies

4. Programming

Hash Table

I was looking at this script and was wondering if anyone can explain what this script does and how does it work. Thank you for any help. State* lookup(char* prefix, int create) { int i, h; State *sp = NULL ; h = hash(prefix); for (sp = statetab; sp != NULL; sp... (14 Replies)
Discussion started by: totoro125
14 Replies

5. UNIX for Dummies Questions & Answers

Keepalived and Source Hash Scheduling

Hello guys, Hope you are doing great!! Right now I'm using keepalived daemon in order to ensure a Load Balancing function between my two servers. First of all, I tried using the famous "Round-Robin Scheduling" algorithm and it worked well, but I'm kind of obligated to use the "Source Hashing ... (7 Replies)
Discussion started by: biks93
7 Replies