On Mon, Oct 02, 2000 at 09:17:31PM -0500, David L. Nicol wrote:
> Jarkko Hietaniemi wrote:
> 
> > This reminds me of a related but rather opposite desire I have had
> > more than once: a quotish context that would be otherwise like q() but
> > with some minimal extra typing I could mark a scalar or an array to be
> > expanded as in qq().  For example doubling the $ and @? $$foo, @@bar?
> > This comes in handy when you are generating big blocks of code on the
> > fly but only tiny parts of it needs to be interpolated.  Unfortunately
> > the margin of my monitor is not enough to describe this wonderful idea
> > in a form of a RFC.
> 
> 
>       $qqdString =~ s/\[(\w+)\]/defined($vars{$1})?$vars{$1}:"[$1]"/ge;

I'm sorry but that didn't quite make my heart leap with joy :-)

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to