Re: Heredoc strings

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

I presume that the trimmed whitespace needs to be spaces. How would it deal with a tab thrown in?

Both the SPACE and TAB character are classed as a single whitespace character. Thus leading TABs are not expanded to equivalent SPACEs before trimming. It is not advisable to use TABS as leading whitespace in extended string literals.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu