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.

Reply via email to