develooper Front page | perl.perl6.language | Postings from March 2002

Re: rethinking printf

Thread Previous | Thread Next
From:
Uri Guttman
Date:
March 6, 2002 20:15
Subject:
Re: rethinking printf
Message ID:
200203070415.XAA07617@home.sysarch.com.
>>>>> "BL" == Bart Lateur <bart.lateur@pandora.be> writes:

  BL> On Wed, 6 Mar 2002 17:57:07 -0500, Uri Guttman wrote:
  >> how often will you need to interpolate a hash?

  BL> A whole hash: quite rarely. A hash item: a LOT. Don't forget that
  BL> $foo{BAR} will now become %foo{BAR}

good point. $() can still wrap that but then there has to be a balance
between printf strings and double quoters. how about this wacky idea:

make a new type of string where %foo{bar} is not interpolated by
default. maybe something in the q/qq family could be added like qn for
no hash interpolation. you can use $() to still force it if you need to
in printf formats. 

just trying out various ideas,

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
-- Stem is an Open Source Network Development Toolkit and Application Suite -
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About