- or download this
sub search_me {
my $self = shift;
...
return @results;
}
- or download this
$VAR1 = [
{
...
}
];
- or download this
package Note::Attribute::Trait::Searchable {
use Moose::Role;
Moose::Util::meta_attribute_alias('Searchable');
}
- or download this
package Note::Searchable {
use Moose::Role;
...
}
}
- or download this
package Note {
use Moose;
...
no Moose;
}
- or download this
my $note = Note->new(
title => 'My title xyzzy',
...
say Dumper [ $note->search('xyzzy') ];
- or download this
$VAR1 = [
{
...
'value' => 'My title xyzzy'
}
];