moosex::attributehelpers::methodprovider::array(3pm) [debian man page]
MooseX::AttributeHelpers::MethodProvider::Array(3pm) User Contributed Perl Documentation MooseX::AttributeHelpers::MethodProvider::Array(3pm)NAME
MooseX::AttributeHelpers::MethodProvider::Array - method generator for MooseX::AttributeHelpers::Collection::Array
DESCRIPTION
This is a role which provides the method generators for MooseX::AttributeHelpers::Collection::Array.
METHODS
meta
PROVIDED METHODS
This module also consumes the List method providers, to see those provied methods, refer to that documentation.
get
pop
push
set
shift
unshift
clear
delete
insert
splice
sort_in_place
Sorts the array in place, modifying the value of the attribute.
You can provide an optional subroutine reference to sort with (as you can with the core "sort" function). However, instead of using $a
and $b, you will need to use $_[0] and $_[1] instead.
accessor
If passed one argument, returns the value of the requested element. If passed two arguments, sets the value of the requested element.
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::MethodProvider::Array(3pm)
Check Out this Related Man Page
MooseX::AttributeHelpers::Trait::Collection::List(3pm) User Contributed Perl Documentation MooseX::AttributeHelpers::Trait::Collection::List(3pm)NAME
MooseX::AttributeHelpers::Collection::List - List attribute
SYNOPSIS
package Stuff;
use Moose;
use MooseX::AttributeHelpers;
has 'options' => (
metaclass => 'Collection::List',
is => 'ro',
isa => 'ArrayRef[Int]',
default => sub { [] },
provides => {
map => 'map_options',
grep => 'filter_options',
}
);
DESCRIPTION
This module provides an List attribute which provides a number of list operations. See MooseX::AttributeHelpers::MethodProvider::List 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::List(3pm)
Sorry if this is not the right folder...
I come across these terms..
-Disk Array
-Clustering
What are they? When and how will we use them?
Please teach me.
Thanks (1 Reply)
Array's example :) Hi all,
Since Iam learning the usage of Unix scripting, can any one provide some array examples (Simple to complex)?
With Regards,
Love (Jennifer) (5 Replies)
Could one of you, please, provide some input regarding my problem below and it is as follows:
I have 2 files that I need to make sure are identical before processing:
First, I sort both files
Second, I do a diff file1 file2 > File 3
This provides me with the difference.
Now, I need to... (6 Replies)
Hi All,
I can;t seem to print out the array in sequence using the below subroutine.
My first element in the array @lotsuffix is suppose to be $lotsuffix as defined in the subroutine, but when the array variable is being pass on the main program, my first element actually becomes $lotsuffix ! ... (4 Replies)
How is it possible to sort different nummeric values within an Array. But i don`t want the highest or the lowest. I need the most frequently occurring value.
For examble:
My Array has to following values = (200 404 404 500 404 404 404 200 404)
The result should be 404
The values are... (3 Replies)
Hi,
i have a txtfile with the format <Nr>tab<word>tab<other stuff>new line and i want to sort the <word>-colum with a perl script.
My textfile:
<Nr>tab<word>tab<other stuff>new line
6807 die ART.Acc.Sg.Fem
6426 der ART.Gen.Sg.Fem
2 die ART.Nom.Sg.Fem
87 auf APPR.--
486 nicht PTKNEG.--... (1 Reply)
I am new in perl ....
I defined Array in Perl which contain values as below:
Array name: @TEST
sample values : when I print Array: print " @test \n";
<title>0008857661</title>
<title>0009841171</title>
<title>0010161261</title>
<title>0010230023</title>
I want to get only these... (7 Replies)
Hi All,
I am trying to run a do while for an array. And in the do while, I'm trying to get a user response. Depending on the the answer, I go ahead and do something or I move on to next element in the array.
So far I can read the array, but I can't get the if statement to work. Any suggestions... (5 Replies)
$ cc Array.c
Array.c: In function ‘main’:
Array.c:23: warning: passing argument 1 of ‘scanf’ makes po
Array.c:25: error: expected expression before ‘return’
Array.c:29: error: expected expression before ‘return’
Array.c: At top level:
Array.c:44: error: expected ‘)’ before ‘&’ token... (8 Replies)
hi Team,
i need a help in perl ,
i need to get values(10 rows +) from perl GUI and insert those values into oracle table.
am trying to achive this in Perl array, can you please help me on this.
thanks
senthil (1 Reply)
Hello
I have a problem.
I create a Multidimensional Array Like this:
ENTRY="$kunnum-$host"
ENTRY="$host"
ENTRY="# $3"
for key in "${!ENTRY}"; do
ENTRIES=${ENTRY} # INDEX=IP(5)
donedeclare -p
declare -A ENTRIES=(="unas15533" ="unas" ="# RDP-Terminal 2"... (12 Replies)