Help for this page

Select Code to Download


  1. or download this
    use v5.14;
    use strict;
    ...
    ValAtom->new(data => []);           # ArrayRef
    ValAtom->new(data => {});           # HashRef
    ValAtom->new(data => \*STDOUT);     # none of the above... crash!
    
  2. or download this
    my $tc = ValAtom->meta->get_attribute('data')->type_constraint;
    say $tc->_inline_check('$value') if $tc->can_be_inlined;