develooper Front page | perl.fwp | Postings from March 2002

RE: rethinking printf

Thread Previous | Thread Next
From:
Brent Dax
Date:
March 10, 2002 13:56
Subject:
RE: rethinking printf
Message ID:
FJELLKOPEAGHOOODKEDPKEDFDFAA.brentdax@cpan.org
Uri Guttman:
# i disagree. but we shall see if larry is listening to this thread and
# will back away from hash interpolation or take some of our suggestions
# that make it work without killing format strings. i hate to see a
# special call or wierd syntax for that. my qn (or qf)
# suggestion seems to
# have some backing and it is clean and unobtrusive.

I think qn counts as weird syntax.  I ask again, what's wrong with one
of:

	sprintf("%hash\%s", $string);
	sprintf(%hash.'%s', $string);
	sprintf('%s%s', _%hash, $string);

?

--Brent Dax <brentdax@cpan.org>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

#define private public
    --Spotted in a C++ program just before a #include


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