6 use constant FLOPPYSIZE => 1440 * 1024;
8 while ( my $filename = shift ) {
9 die "$filename is not a file\n" unless -f $filename;
10 die "$filename is too large\n" unless ( -s $filename <= FLOPPYSIZE );
11 truncate $filename, FLOPPYSIZE or die "Could not truncate: $!\n";