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;
In reply to Re^2: Problem with reading multi-line
by jwkrahn
in thread Problem with reading multi-line
by sarshads
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |