James A. Duncan > Pixie-2.06 > Pixie::Info

Download:
Pixie-2.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Pixie::Info - A magical way of having out of band info

SYNOPSIS ^

  use Pixie::Info;

  $obj->Pixie::Info::set_info($a_value);
  ...
  $info = Pixie::Info::get_info($obj) # could use OO style here too...

DESCRIPTION ^

Associates an id (could be an object itself) to any other object or ref. if you destroy the ref and you dont hold any copy of $id, $id gets also destroyed.

Be carefully about circular references (Scalar::Util::weaken is your friend.

AUTHOR ^

M. Friebe

Converted to Pixie by Piers Cawley (changed the magic type, module name, stole the idea).

syntax highlighting: