On 6 Mar 2002, at 9:45, Rich Morin wrote:

> At Larry's (SVPUG) Perl6 talk last night, I was quite disturbed by his
> assertion that printf format statements would have to be wrapped in
> single quotes, because "%" would try to interpolate a hash value.  He
> suggested, when asked, that folks could put in newlines as follows:
> 
>    'yada yada yada \qq{\n}'
> 
> This seems pretty ugly to me (Randal didn't like it much either :-)

I'll just mention that the root cause of all this trouble isn't *printf* 
but rather the *interpolation*.  Just as many of us had [and I still 
have] a bit of a nuisance with email addrs when perl5 interpolated '@', 
it seems like this is a minimally-useful 'feature' that'll cause a LOT 
more trouble than it is worth [IMO, of course..:o)].

I wonder if the solution is to look at it the other way: that you have to 
do something to get interpolation to happen.  If we look at it from the 
old adage of making the more common things simpler, at least in my code I 
very rarely interpolate arrays [and I suspect I'd even LESS often 
interpolate hashes], I wouldn't mind the syntax going the other way -- 
maybe "@" never interpolates and you need to do "\@" to make 
interpolation happen [and then similarly with '%']...  This is also 
simlar to the logic behind Perl's reversing the longstanding unix 
convention WRT to chars like '(' in REs.

  /Bernie\

-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:[EMAIL PROTECTED]     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

Reply via email to