I'm trying to parse an avi header and I'm having
problems getting the actual values of the integer data
in the file.
Here's what I do:
open(INHANDLE, "tesmovie.avi.mp3") || die("can't open
file");
my $line = <INHANDLE>;
my $datarate = substr($line, 4, 4) - 0;
print "$datarate\n";
What I'm trying to do here is read the data rate,
which is a 4 byte integer into $datarate... but I
always get 0... How do I treat a string and convert
it's actual bit value to a long integer?
Thanks hope you can help me
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>