Re: RFC 237 (v1) hashes should interpolate in double-quoted strings
[email protected] (Nathan Torkington) Mon, 18 Sep 2000 08:14:41 -0600 (MDT)
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
Chaim Frenkel writes:
> What about formating the output as a value that can be used by eval?
>
> %hash = (a => 1, b => 'the world');
> print "%{hash}\n";
>
> ('a' => 1, 'b'=> 'the world')
Interesting.
> And as for having to escape % in printf strings. Why not enable the
> interpolation if the %{ is seen?
Too inconsistent. People often write dollar amounts, but we don't
only enable scalar interpolation for ${varname}.
Nat