On 29 Sep 2000, Perl6 RFC Librarian wrote:
> Make Perl's powerful string interpolation facilities are available to
> variables, in addition to literals.
>
> =head1 DESCRIPTION
>
> Given:
>
> $foo = 'def';
> $bar = 'ghi';
> $x = "abc$foo$bar";
> $y = 'abc$foo$bar';
>
> There is no way to turn obtain the value of $x from the value of $y.
> In other words, while $foo and $bar were interpolated into $x, they
> were not interpolated into $y. It would be nice to get Success! from:
Um, what would your proposal gain you over
$z = eval "qq{$y}";
other than conciseness, elegance and speed (which may be quite enough!) ?
John.
- goof - RFC 328 (v1) Single quotes don't interpolate \' and... John L. Allen
- goof - RFC 328 (v1) Single quotes don't interpolate \... nick
- Re: RFC 229 (v2) Variable interpolation on demand. Robert Mathews
- Re: RFC 229 (v2) Variable interpolation on demand... John L. Allen
- Re: RFC 229 (v2) Variable interpolation on demand. Glenn Linderman
- Re: RFC 229 (v2) Variable interpolation on demand. David L. Nicol
- Re: RFC 229 (v2) Variable interpolation on demand... Robert Mathews
- Re: RFC 229 (v2) Variable interpolation on de... David L. Nicol
- Re: RFC 229 (v2) Variable interpolation on demand... Glenn Linderman
- Re: RFC 229 (v2) Variable interpolation on demand... Bart Lateur
