in reply to Using a perl script as a graphic?

You didn't specify your platform, but if you're on a box where "binmode()" makes a difference, use binmode(C) and binmode(STDOUT).