while () { print "$2\t=>$1\n" if /^(.*?)\s+(.*?)$/; } __DATA__ 0 5713813 276k CVS_RES 264k Desktop 17k Documes 33k SEARCH #### map {print "$2\t=>$1\n" if /^(.*?)\s+(.*?)$/} ; __DATA__ 0 5713813 276k CVS_RES 264k Desktop 17k Documes 33k SEARCH