Help for this page

Select Code to Download


  1. or download this
    my $self = {};  # hash ref
    ...
    foreach my $method (@method_names_from_file) {
       $self->{$method} = makeCommandSub($stuff);
    }
    
  2. or download this
    my $code = sub {
       my $self = shift;
       print "Dang, it worked.\n";
    };
    return $code;
    
  3. or download this
    $myDB           <hash>
       ->{method1}  <CODE>
       ->{method2}  <CODE>
    
  4. or download this
    $myDB->method1();
    
  5. or download this
    Can't locate object method "method1" via package "BigDB" at line...