Help for this page

Select Code to Download


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