Lines Matching defs:Readonly
3 Readonly::XS - Companion module for Readonly.pm, to speed up read-only
8 This document describes version 1.05 of Readonly::XS, February 24, 2009.
12 package Readonly::XS;
21 XSLoader::load('Readonly::XS', $VERSION);
24 # It is an error to use this from any module but Readonly.
29 if ($MAGIC_COOKIE ne "Do NOT use or require Readonly::XS unless you're me.")
32 Carp::croak("Readonly::XS is not a standalone module. You should not use it directly.");
43 *{"Readonly::$func"} = \&$func;
45 $Readonly::XSokay = 1;
58 The Readonly module (q.v.) is an effective way to create
67 scalar variables. When Readonly::XS is installed, Readonly uses it to
69 scalar variable object and tying it, Readonly simply flips the
72 Readonly arrays and hashes are not sped up by this, since the
79 just for this module. Rather than render Readonly.pm useless for
82 Programs that you write do not need to know whether Readonly::XS is
83 installed or not. They should just "use Readonly" and let Readonly
84 worry about whether or not it can use XS. If the Readonly::XS is
85 present, Readonly will be faster. If not, it won't. Either way, it
88 Your program can check whether Readonly.pm is using XS or not by
89 examining the $Readonly::XSokay variable. It will be true if the
99 Readonly.pm