develooper Front page | perl.perl5.porters | Postings from December 2002

Re: [PATCH] operation on `PL_na' may be undefined

Thread Previous | Thread Next
From:
John Peacock
Date:
December 10, 2002 12:34
Subject:
Re: [PATCH] operation on `PL_na' may be undefined
Message ID:
3DF64F1A.5050407@rowman.com
Nicholas Clark wrote:
> Both SvPV macros are assigning to PL_na. Using PL_na in the first place isn't
> a great idea, as it's in thread local storage on a threaded perl.
> 

-	    Perl_croak(aTHX_ "%s version %s required--this is only version %s",
-		HvNAME(pkg), SvPV(req,PL_na), SvPV(sv,PL_na));
+	    Perl_croak(aTHX_ "%s version %_ required--this is only version %_",
+		HvNAME(pkg), req, sv);

What is %_ ???  Does that force a stringification like SvPV does?  I originally 
had SvPV_nolen, but that isn't supported in Perl < 5.6.0 so I reverted to what 
you see above.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About