brian d foy > Netscape-Bookmarks-2.301 > Netscape::Bookmarks::Separator

Download:
Netscape-Bookmarks-2.301.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 2.301   Source  

NAME ^

Netscape::Bookmarks::Separator - manipulate, or create Netscape Bookmarks files

SYNOPSIS ^

        use Netscape::Bookmarks::Category;
        use Netscape::Bookmarks::Separator;

        #add a separator to a category listing
        my $category  = new Netscape::Bookmarks::Category { ... };
        my $separator = new Netscape::Bookmarks::Separator;
        my $category->add($separator);

        #print the separator
        #note that Netscape::Category::as_string does this for you
        print $separator->as_string;

DESCRIPTION ^

Store a Netscape bookmark separator object.

METHODS ^

Netscape::Bookmarks::Separator->new

Creates a new Separator object. This method takes no arguments. This object represents a Singleton object. The module only makes on instance which everybody else shares.

$obj->as_string

Prints the separator object in the Netscape bookmark format. One should not have to do this as Netscape::Bookmarks::Category will take care of it.

$obj->title

Prints a string to represent a separator. This method exists to round out polymorphism among the Netscape::* classes. The string does not have a trailing newline.

$obj->remove

Performs any clean up necessary to remove this object from the Bookmarks tree.

AUTHOR ^

brian d foy <bdfoy@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright © 2002-2016, brian d foy <bdfoy@cpan.org>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Netscape::Bookmarks

syntax highlighting: