- or download this
Table: preferences
+----+------------------+----------------------------+
...
| 1 | item_enabled | 1 |
| 2 | task_name | something |
+----+------------------+----------------------------+
- or download this
my $row=DB::Prefs->search({ name => "filename" })->first;
print $row->value,$/;
$row->value("/new/path/to/file");
- or download this
print DB::Prefs->filename,$/;
DB::Prefs->filename("/new/path/to/file");
- or download this
package App::Prefs;
use base 'App';
...
}
return defined($row) ? $row->value : undef;
}