Help for this page

Select Code to Download


  1. or download this
    my $sub = \&$name;
    $sub->( @args )
    
  2. or download this
    die "No sub named `$name`" if !defined( &$sub );
    
  3. or download this
    $invocant->$name( @args )
    
  4. or download this
    my $method = $invocant->can( $name );
    $invocant->$method( @args )
    
  5. or download this
    die "No method named `$name`" if !$method;