Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Just another Perl shrine
 
PerlMonks  

Re: MP3::Tag - Leading zeros on 'track' truncated

by Ryszard (Priest)
on Jan 17, 2008 at 10:38 UTC ( #662836=note: print w/ replies, xml ) Need Help??


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..?


Comment on Re: MP3::Tag - Leading zeros on 'track' truncated
Re^2: MP3::Tag - Leading zeros on 'track' truncated
by roboticus (Canon) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-18 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (465 votes), past polls