in reply to (atl: look on CPAN) Re: Sorting Netscape Browser Bookmarks
in thread Sorting Netscape Browser Bookmarks
Atl gives good advice, but I would actually go with URI-Bookmarks it is sorta the sequel to Netscape::Bookmarks.
For starting code I would do something like this (as taken from the POD)...
#!/usr/bin/perl use strict; use URI::Bookmarks; my $bookmarks = new URI::Bookmarks(file => "$ENVHOME}/.netscape/bookmarks.html"); my $bookmarks = new URI::Bookmarks(handle => $fh); my $bookmarks = new URI::Bookmarks(array => \@lines); # Manipulate $bookmarks using nice tree methods from Tree::DAG_Node, # e.g. delete all bookmarks under $folder: ($bookmarks->name_to_nodes($folder))[0]->unlink_from_mother(); # Then output the new file. print $bookmarks->export('Netscape array');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(atl: CPAN stuff ...) Multi-Re: Sorting Netscape Browser Bookmarks
by atl (Pilgrim) on Jul 19, 2001 at 18:25 UTC | |
by foogod (Friar) on Jul 19, 2001 at 19:09 UTC | |
by atl (Pilgrim) on Jul 19, 2001 at 19:18 UTC |