Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by roboticus (Chancellor)
on Jan 17, 2008 at 11:18 UTC ( #662846=note: print w/replies, xml ) Need Help??


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

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://662846]
help
Chatterbox?
[atcroft]: I may just post a question about it later. *shrug*
[Lady_Aleena]: I wish I could have helped you further but I've never uploaded to cpan or metacpan so I don't know much.
[Lady_Aleena]: If metacpan had a pod checker too, I could check a pod I wrote with a module link there.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2017-05-27 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?