Tie::Hash::ConstantTie::Hash::Constant is a Perl module to make a hash return a constant for all its members. | |
Download |
Tie::Hash::Constant Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Richard Clamp
- Publisher web site:
- http://search.cpan.org/~rclamp/
Tie::Hash::Constant Tags
Tie::Hash::Constant Description
Tie::Hash::Constant is a Perl module to make a hash return a constant for all its members. Tie::Hash::Constant is a Perl module to make a hash return a constant for all its members.SYNOPSIS 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"; !!!Tie::Hash::Constant allows you to define a constant to be returned as all values contained within a hash.It has marginal use as a debugging tool. Requirements: · Perl
Tie::Hash::Constant Related Software