MyCPAN::Indexer::Notes - Tiny class for MyCPAN component note passing
Use in the coordinator object. This isn't really for the public.
This is a scratchpad for the
As a component does part of its job,
it can leave notes that other components can inspect and use.
This is a low-level implementation, so it's stupid about the keys and values that the components might use. It doesn't attempt to validate or constrain the notes in any way. It can, however, act as a base class for a custom notes class.
Create a new notes object. This is really just a fancy hash. You probably shouldn't call this yourself unless you are working in the coordinator object.
Get the note named
This could be anything that was set: a string,
and so on.
Set the note named
This could be anything you like: a string,
and so on.
This saves you the hassle of getting the value with
and saving the new value with
Increase the value of NOTE by one. Returns the previous value of NOTE.
Decrease the value of NOTE by one. Returns the previous value of NOTE.
Add a value onto the end of the array reference value for NOTE.
Add a value onto the front of the array reference value for NOTE.
Return the list element at INDEX for the array reference stored in NOTE.
Set the VALUE for NOTE unless NOTE already has a defined value. Returns the current value if it is already defined.
This code is in Github:
brian d foy,
Copyright (c) 2008-2010, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.