Help for this page

Select Code to Download


  1. or download this
    sub get_by_string {
       my ($this, $field, $property, $value) = @_;
    ...
       return grep { $_->{$property} == $value } @{$this->{$field}};
    }
    
  2. or download this
    my @items = $obj->get_by_string('item','name',$name);
    my @users = $obj->get_by_number('user','id',$id);