[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: wml 2.0.7: ePerl printf



On Tue, Jul 31, 2001 at 09:02:27AM +0200, Karl-Heinz Marbaise wrote:
> Hi Denis,
> > > Am I not allowed to use printf in ePerl?
> > You are, but %0 may be expanded because it is inside a tag definition.
> > Then write
> >    <protect pass=2>
> >    printf STDOUT '%02d:%02d:%02d UTC %04d', $hour, $min, $sec, $year;
> >    </protect>
> I have tried to protect it like:
> printf STDOUT '\%02d...' but it didn't work either.
> 
> Many thanks it works like expected.

You may also protect it with
     printf STDOUT '%%02d...'
I find it confusing in this special case, but maybe you prefer this
solution.

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com