Help for this page

Select Code to Download


  1. or download this
    sub get {
        my $self     = shift;
    ...
        
        return $resp;
    }
    
  2. or download this
    $object->get('tablename', 10);
    $object->get('dbname.tablename', 10);
    $object->get([qw/id foo bar/], 'tablename', 10);
    $object->get('tablename', 'key_field', 10);
    $object->get([qw/id foo bar/], 'dbname.tablename', 'key_field', 10);
    
  3. or download this
    $object->get(
        fields    => [qw/id foo bar/],
    ...
        key_field => 'key_field',
        key_value => 10,
    );
    
  4. or download this
    sub test1
    {
    ...
    test1('arg1', \@otherargs);
    test1('arg1', 'arg2');
    test1('arg1', 'arg2', [qw/foo bar/]);