in reply to read data 1 byte at a time
#!/usr/bin/perl -wl $/ = \1; open FILE, "file" or die "Error message here: $!"; while (<FILE>) { print; } [download]
-- John.