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

Reply via email to