Tie-Hash-Constant README


Tie-Hash-Constant documentation  | view source Contained in the Tie-Hash-Constant distribution.

Index


NAME

Top

Tie::Hash::Constant - make a hash return a constant for all its members

SYNOPSIS

Top

  use Tie::Hash::Constant;
  tie my %always_pie, 'Tie::Hash::Constant' => 'PIE!';
  $always_pie{food} = "salad";
  print "My favourite food is $always_pie{food}\n"; # prints "My favourite food is PIE!"
  print "There is no $always_pie{spoon}\n";  # prints "There is no PIE!\n"; !!!







INSTALLATION

Top

 perl Build.PL
 perl Build test

and if all goes well

 perl Build install

AUTHOR

Top

Richard Clamp <richardc@unixbeard.net>

Copyright Richard Clamp 2004. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

Tie::Hash


Tie-Hash-Constant documentation  | view source Contained in the Tie-Hash-Constant distribution.