You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#binmode FILEHANDLE
|
|
#binmode FILEHANDLE, DISCIPLINE
|
|
|
|
$infile="a.gif";
|
|
open( INFILE, "<$infile" );
|
|
open( OUTFILE, ">out.gif" );
|
|
|
|
binmode( INFILE );
|
|
binmode( OUTFILE );
|
|
|
|
while ( read( INFILE, $buffer, 1024 ) ) {
|
|
print OUTFILE $buffer;
|
|
}
|
|
|
|
close( INFILE );
|
|
close( OUTFILE );
|
|
|
|
|