>>>>> "PS" == Peter Scott <[EMAIL PROTECTED]> writes:
PS> At 01:39 AM 3/11/02 +0100, Eugene van der Pijll wrote:
>> Why not replace the escape character '%' with '#'? No new quoting
>> operators or functions to learn.
PS> Beat me to it.
>> And introduce a warning if there are
>> no #'s in the format string.
PS> Maybe if it's a constant, but not if you're doing something like
PS> printf "#.3f " x @nums, @nums;
Perl permits the following universally-known flags
between the "%" and the conversion letter:
# prefix non-zero octal with "0", non-zero hex with "0x"
how will that be handled? the classic way to print a % in printf was to
double it up but this allows # after # already.
i really think that the printf format spec is so standard and ingrained
that changing it with # for % or requiring \% is not a good idea.
but then again, backwards compatibility is not a rule you must always
obey. i just think in this case it should be.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- 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