Write unpack data to a file
open INFILEHANDLE, "<data.uue";
open OUTFILEHANDLE, ">data.dat";
binmode OUTFILEHANDLE; #Necessary in MS DOS!
while (defined($line = <INFILEHANDLE>)) {
print OUTFILEHANDLE unpack('u*', $line);
}
close INFILEHANDLE;
close OUTFILEHANDLE;
Related examples in the same category