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
- RFC 237 (v1) hashes should interpolate in double-quote... Perl6 RFC Librarian
- Re: RFC 237 (v1) hashes should interpolate in dou... Michael G Schwern
- Re: RFC 237 (v1) hashes should interpolate in... Nathan Wiger
- Re: RFC 237 (v1) hashes should interpolat... Bart Lateur
- Re: RFC 237 (v1) hashes should interpolate in dou... Chaim Frenkel
- Re: RFC 237 (v1) hashes should interpolate in... Nathan Torkington
- Re: RFC 237 (v1) hashes should interpolate in... Bart Lateur