Re: split question

Johan Vromans <[email protected]> Mon, 18 Aug 2014 08:21:40 +0200
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
Jean-Michel Caricand <[email protected]> writes:

>    dir = data.className.split('\.');

    dir = data.className.split('\\.');

It seems that Inline TT is a source filter that processes backslashes.
So it processes '\.' into '.' and passes that to split.
'\\.' will become '\.' and work as expected.

HTH,
        Johan