NAME

Thread::Const - Constant strings efficiently shared between threads

VERSION

Version 0.003

SYNOPSIS

use Thread::Const;

const my $bar => 'some other very large string';

DESCRIPTION

This module generates constant strings that will be shared among threads. This may reduce memory usage because the variable won't be copied.

FUNCTIONS

This module defined one function, which it exports by default.

const($string, $value)

Make $string a constant that will be shared between threads. $value will be assigned to $string.

AUTHOR

Leon Timmermans, <leont at cpan.org>

BUGS

Please report any bugs or feature requests to bug-thread-const at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Thread-Const. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

Const::Fast, A more generalized const facility. Unless your strings are big you probably want to use that.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Thread::Const

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2010 Leon Timmermans, all rights reserved.

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