use strict; print join "",map { ord $_ } map{split(//,$_)} `cat file.pl`; ___________________ $ perl file.pl 1171151013211511611410599116591011211410511011632106111105110323434441099711232123321111141003236953212532109971121231151121081051164047474436954112532329699971163210210510810146112108965910