At 23:01 +0100 2001.02.26, Bart Lateur wrote:
>but you're on the wrong track. The escape mechanism in (s)printf
>templates is to double the percent sign, in order to get just one.
Just by way of explanation: the reason why you can't use \ to escape a % in
a sprintf string is fairly obvious, if you think about what is happening.
Perl first interpolates the string as a regular old string, and then passes
it to sprintf. If you create the string "%d\%", then pass it to sprintf,
it will be "%d%" by the time sprintf sees it.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/