BerntB has asked for the wisdom of the Perl Monks concerning the following question:
I thought it is high time to ask my first Perl 6 question on PerlMonks, so... :-)
On http://planet.perl.org, Gabor Szabo is posting introductory material on Perl 6, here is a post about strings in Perl 6. I must be missing something? One of the examples are:
say "Hello { join(', ', @names) } how are you?";
Evaluating code in strings seems ripe for exploitation by any form of templating code which reads strings from files to print them? Is this handled with some kind of tainting functionality in Perl 6?
(There is similar evaluation of code in Perl 5's regexps, but they have security handling for just this.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 6 strings, interpolation and templates?
by ikegami (Patriarch) on Mar 15, 2009 at 00:33 UTC | |
by BerntB (Deacon) on Mar 15, 2009 at 00:46 UTC | |
by almut (Canon) on Mar 15, 2009 at 01:03 UTC | |
by BerntB (Deacon) on Mar 15, 2009 at 01:08 UTC | |
|
Re: Perl 6 strings, interpolation and templates?
by moritz (Cardinal) on Mar 15, 2009 at 18:14 UTC | |
by BerntB (Deacon) on Mar 16, 2009 at 11:59 UTC |