On Thu, Oct 05, 2000 at 09:38:09PM +0100, [EMAIL PROTECTED] wrote:
> Better yet:
>
> A. use SvPV_nolen()
> B. Declare your own
> STRLEN na;
>
> The reason these are better is that accessing PL_na involves getting access
> to thread-local storage under threads - which is a non-trivial cost for
> something you are not using!
>
> (B) is 100% backward compatible.
It's a little bit better to use:
STRLEN n_a;
If you name the local variable exactly "na" (or "PL_na") then you can
hit multiple declaration conflicts in some versions of perl. But I
suppose you probably figured that out already. ;-)
--
Never ascribe to malice that which can be explained by stupidity.
(via, but not speaking for Deutsche Bank)