open $hddfile, '', "$name$counter"; #should split up file based on whatever size you want read $hddfile, my $buf, $chunks; #someone correct me it im wrong haha print $temp, $buf; $counter++; } open $cmpfile, '', "$name$counter"; #should split up file based on whatever size you want read $hddfile, my $buf, $chunks; #someone correct me it im wrong haha print $temp, $buf; $counter++ }