in reply to Re: Minimum width in printf() ignored?
in thread Minimum width in printf() ignored?

Found it! The file is binary, so there are binary zero bytes behind the texts when I extract these. I did not think about that and used
(@c) = $block =~ /(\d{14})(\d\d)(.*)/;
to extract the contents. Thus the zero bytes were kept as part of $c3. Instead I should have used
(@c) = $block =~ /(\d{14})(\d\d)([ -z]*)/;
This now yields
Two names: 'F#maj13/Eb ', 'Gbmaj13/Eb ' for D#/Eb4, +F#/Gb4, A#/Bb4, F5,
as I intended it. Thank any way for your help, it pushed me in the right direction!

Replies are listed 'Best First'.
Re^3: Minimum width in printf() ignored?
by Anonymous Monk on Sep 02, 2024 at 15:20 UTC

    Ah-hah! You figured out what we were assuming, that was not in fact true. Good hunting!