Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Class::DBI keys as accessors

by duncs (Beadle)
on Jul 25, 2007 at 15:14 UTC ( [id://628701]=sourcecode: print w/replies, xml ) Need Help??

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;
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: sourcecode [id://628701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found