http://qs321.pair.com?node_id=662836


in reply to MP3::Tag - Leading zeros on 'track' truncated

perhaps its not explicitly stripped, it could be that the truncation you see is a result of a math operation..?

Replies are listed 'Best First'.
Re^2: MP3::Tag - Leading zeros on 'track' truncated
by roboticus (Chancellor) on Jan 17, 2008 at 11:18 UTC
    Quite possibly as a result of getting the next track number. It's easy to use math ($t=$t+1) instead of the increment operator ($t++) causing the leading zeroes to be removed. Example:

    $ perl -e 'my $t="00";print ++$t' 01 $ perl -e 'my $t="00";print $t+1' 1
    ...roboticus