The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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).