ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved