http://www.perlmonks.org?node_id=1069599


in reply to Re: ID3v2 TAG Footer Reading goes wrong (more subs)
in thread ID3v2 TAG Footer Reading goes wrong

Bah, typos/missing
ReadBytes(\*STDOUT,10); ## a test :) sub ReadBytes { my( $fh, $bytes ) = @_; $bytes or Carp::croak 'Usage: ReadBytes( $filehandle, $bytes ) '; my $readed = read $fh, my($data) , $bytes; $readed == $bytes or Carp::carp "Only read($readed) but wanted($by +tes): $! ## $^E "; $data; } use constant CAN_PACK_QUADS => !! eval { my $f = pack 'q'; 1 };