Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Trouble coercing array elements

by ikegami (Pope)
on Jul 28, 2011 at 21:46 UTC ( #917352=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        package MyArray;
    ...
    
    $a0->push(2.0);
    dump_it($a0);
    
  2. or download this
    bless( {"myarray" => [[0],[0,0,0],[1,2,3]]}, 'MyArray' )
    bless( {"myarray" => [[0],["cat"],[1,2,3]]}, 'MyArray' )
    bless( {"myarray" => [[0],["cat"],[1,2,3],[2]]}, 'MyArray' )
    
  3. or download this
    subtype 'MyArray::Ents::Level2'
        => as 'ArrayRef[Str|Num|Int]';
    ...
    ...
    
    isa => 'MyArray::Ents'
    
  4. or download this
    Can't call method "is_a_type_of" on an undefined value at .../Moose/Me
    +ta/Attribute/Native/Trait.pm line 98
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://917352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-05 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls