First, you're not writing to the file... reformat the third line to read print FILE pack("b*","a","b","c") or die $!;
Additionally, you'll want, after you open FILE, to write binmode(FILE); - I dont know if this is necessary on all platforms, but it certainly can't hurt.