Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

by martin (Friar)
on Jan 17, 2008 at 11:50 UTC ( #662851=note: print w/replies, xml ) Need Help??

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

The track number available in an ID3v1 tag is a small unsigned integer number stored in a single byte. If you retrieve this information once MP3::Tag has stored it in such a tag you will only get a numerical value back, without fancy formatting.

The documentation you quote refers to parse_rex() -- a method not related to your code.

If you want to find out about the conversion from a Perl scalar holding some numerical value into a raw byte look out for the pack function.


$x = pack 'C', 65; print "$x\n"; # prints the letter A $n = unpack 'C', $x; print "$n\n"; # prints the number 65

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662851]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2018-06-25 04:51 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.