Do you mean if someone is writing from STDIN? If so, you feed their input into an array instead a scalar. Their input will not be terminated by a carriage return if data is being fed to an array. They have to use ctrl+z on windows or ctrl+d on linux to stop input.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.