Re: is $1 really readonly?
by avarab other posts by this author
Jul 17 2008 3:18AM messages near this date
is $1 really readonly?
|
Re: is $1 really readonly?
On Thu, Jul 17, 2008 at 8:47 AM, Torsten Foertsch
<torsten.foertsch@[...].net> wrote:And, to actually answer some of your questions:
> And how can I know in XS if a variable should not be modified? The READONLY
> flag is not set on $1 but is set on $^V
You have to do the equivalent of eval { $var = "foo" } as you'd need
to do with any tied $var that has a STORE method, whether it's
implemented in core, XS, or Pure-Perl.
> although both are documented as read-only.
If capture variables are documented as READONLY somewhere that's a
bug, what documentation are you referring to?
Thread:
Torsten Foertsch
avarab
Torsten Foertsch
avarab
|