On Fri, Sep 15, 2000 at 05:56:36AM -0000, Perl6 RFC Librarian wrote:
>       $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:
> 
>       $z = interpolate ( $y );
>       print 'Success!"  if $z eq $x;

sub interpolate {eval "\"@_\""}

Never say "there is no way". There's *always* a way, and 99% of the time it
doesn't need to go in core.

-- 
"Even if you're on the right track, you'll get run over if you just sit there."
-- Will Rogers

Reply via email to