Help for this page

Select Code to Download


  1. or download this
    package TestPackage;
    use Data::Dump qw( dump );
    ...
    print 'Can dump()' if $obj->can( 'dump' );
    
    print 'Can not_a_sub()' if $obj->can( 'not_a_sub' );
    
  2. or download this
    
    package A::Type;
    ...
    sub func : Signature( A::Type parameter ) {
    
    }