Plerd::Tag
Objects of this class represent a categorization tag in a Plerd blog.
Object constructor. The single config hashref must include the following keys:
The parent Plerd object.
This tag's name. Just an ordinary text string.
A list reference of all Plerd::Post objects making use of this tag.
A URI object pointing to this tag's detail page.
Adds the given Plerd::Post object to this tag's list of posts.
Given $new_name, this tag ponders whether it should replace its own name with it. If it decides that that a replacement is due, it goes ahead and performs the swap.
If the current name has no capital letters, and the new name does, then the new name will indeed replace it.
For example, if a tag is named "foo", and we call this method with "Foo", then this tag will rename itself to "Foo". If we call it again with "foo", the tag will remain "Foo".
Plerd
Jason McIntosh <jmac@jmac.org>
To install Plerd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plerd
CPAN shell
perl -MCPAN -e shell install Plerd
For more information on module installation, please visit the detailed CPAN module installation guide.