open FH,"./input.txt"; while() { @arr = ($_ =~ m/.{1,8}/g); print join "***\n",@arr; }