develooper Front page | perl.perl5.porters | Postings from February 2003

[perl #20654] %*v02x considered invalid in printf

Thread Previous
From:
Rafael Garcia-Suarez
Date:
February 2, 2003 18:09
Subject:
[perl #20654] %*v02x considered invalid in printf
Message ID:
rt-20654-50022.9.17333853877565@bugs6.perl.org
# New Ticket Created by  Rafael Garcia-Suarez 
# Please include the string:  [perl #20654]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=20654 >


Jay Tilton reports this on c.l.p.misc : (<3e3afb24.30030635@news.erols.com>)

$ perl5.8.0 -we 'printf "%*v02x"," ","foo"'
Invalid conversion in printf: "%0" at -e line 1.
%*v02x

$ perl5.6.0 -we 'printf "%*v02x"," ","foo"'
66 6f 6f

I don't see a reason why this construct shouldn't work.


Thread Previous


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