#!/usr/bin/perl -w use strict; $| = 1; $/ = ''; for( ) { #2345678 1 2345678 2 2345678 3 2345678... # Replace this line with your code ; print; }