User Tools

Site Tools


esmith:db

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
esmith:db [2015/05/22 07:30]
stephdl [get_all]
esmith:db [2015/05/22 07:30]
stephdl [get_value]
Line 117: Line 117:
       use esmith::HostsDB;       use esmith::HostsDB;
       $DB = esmith::HostsDB->open;       $DB = esmith::HostsDB->open;
- +  
       # Purge quoting chars in comments to fix bug 8723 & bug 8806       # Purge quoting chars in comments to fix bug 8723 & bug 8806
       foreach my $host ($DB->get_all)       foreach my $host ($DB->get_all)
Line 126: Line 126:
           $host->merge_props(Comment => $comment);           $host->merge_props(Comment => $comment);
       }       }
- }+  }
  
 ===== Concrete methods ===== ===== Concrete methods =====
Line 158: Line 158:
  
         my $value = 'default';         my $value = 'default';
- +  
         if (my $r = $db->get("foo"))         if (my $r = $db->get("foo"))
         {         {
esmith/db.txt ยท Last modified: 2019/06/05 19:48 (external edit)