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

Thanks to everyone here for replying.

My solution was reading number of times in a variable called $times and then loop to read or print.

If you read exam test solution as mentioned above, it read the input different way. For example @ascii is an array :

$ascii[0]=3; (which mean read input 3 times) $ascii[1]=65; (read first input) $ascii[2]=66; (read second input) $ascii[3]=66; (read third input)

Here automatically ends without pressing Ctrl+Z/D because as said first value ascii as number of times to read input.

This is what I understand from the problem, please tell me if you have another solutions that can execute this task.

Thanks to all. Iam a new comer to perl monks.