open(file, '<', "test.txt"); while (my $a = ) { print "text \n"; push(@print,$a); } close(file);