Your use of <FILE> is treating the binary file as a text file and returning a series of lines delimited by $/ (the end of line character, aka \n) which is not what you want. See readline for the details.
Review Apache::MP3 for one way to serve up MP3 streams.
This is not as trivial a task as you're imagining.
In reply to Re: Perl, CGI, and streaming files
by mikeraz
in thread Perl, CGI, and streaming files
by jupe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |