in reply to Perl Mp3 Player

And while i'm messing about with perl/mp3 stuff, i tried the following and it repeatedly crashed perl/bash:
perl -e'open I,"X.mp3"; binmode I; print <I>;
However, just doing the open/binmode and leavint out the print ran fine. Am i running into something funky here? Will perl not read an mp3 file? (i was attempting read the mp3 so i could pipe it to a player reading from stdin)
running 5.6.1, activestate version, and bash via the cygwin emulation dealy.

Replies are listed 'Best First'.
Re: Re: Perl Mp3 Player
by panix (Monk) on Sep 19, 2002 at 05:03 UTC
    It won't be perl/bash - the data in the mp3 will contain ansi escape characters or ^D (exit?), etc that will be harassing your poor terminal.

    Redirect output to a file, and cksum the original/new files, they should match.