Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662836]
help
Chatterbox?
[marto]: so I have to work Saturday, which is good and bad. Bad in the sense that I have to be hear early :( Good in that I am here only as support for another client project, so I get to spend the day working on my personal 'ToDo' list, without the kids :P
[Corion]: marto: Ooof - but yes, being there as only second level support or third level support is good and if you have enough things that you can work on, it won't be a wasted (if paid) day
[marto]: I've opted for a day off later on, rather than pay. I only have to do about 45 mins work for the client, but do need to hang around
[Corion]: marto: Even better ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-02-28 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.