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


Pixie documentation  | view source Contained in the Pixie distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Pixie::Info;

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

DESCRIPTION

Top

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

Top

M. Friebe

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


Pixie documentation  | view source Contained in the Pixie distribution.