in reply to Re: Problem with reading multi-line
in thread Problem with reading multi-line

The OP said:

concatenates the corresponding characters to form a string

So this may be better:

my $ascii; foreach ( 1 .. $times ) { $ascii .= chr <STDIN>; } print $ascii;