On Mon, Jan 05, 2004 at 10:04:01PM -0500, David Manura wrote:
> So, there seems like three main ways out there to implement string 
> interpolation:
> 
>  - use tied hashes
>  - use source filtering (e.g. Filter::Simple)
>  - use a function call on a list (e.g. as done with SQL::Interpolate 
> with source filtering disabled: dbi_interp "SELECT * FROM mytable WHERE 
> X =", \$x);

I think it's also possible to overload "" parsing using the overload
module. But my brain is hazy on this one. Certainly you should be able
to parse a "" string and decide what to return (string, or object ref)

Nicholas Clark

Reply via email to