Changeset 86 in bookmarks
- Timestamp:
- 06/04/15 01:01:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bkmk
r85 r86 26 26 my %action_for = ( 27 27 init => sub { 28 my $src_file = shift; 28 29 $bookmarks->create_tables; 30 load_bookmarks($src_file) if $src_file; 29 31 }, 30 32 … … 69 71 load => sub { 70 72 my ($src_file) = @_; 71 my $src_bookmarks = YAML::LoadFile($src_file); 72 for my $bookmark (@{ $src_bookmarks }) { 73 $bookmarks->add($bookmark); 74 } 73 load_bookmarks($src_file); 75 74 }, 76 75 ); … … 91 90 return $mech->title || $uri; 92 91 } 92 93 sub load_bookmarks { 94 my $src_file = shift; 95 my $src_bookmarks = YAML::LoadFile($src_file); 96 for my $bookmark (@{ $src_bookmarks }) { 97 $bookmarks->add($bookmark); 98 } 99 }
Note: See TracChangeset
for help on using the changeset viewer.