Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Keep It Simple, Stupid
 
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 studying the Monastery: (11)
As of 2014-04-23 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls