This is an easy problem to fix. Try this, if you are on a Win32 system.<br><br><FONT FACE=monospace><br>print "enter some information\n";<br>$info = <STDIN>;<br>chomp($info);<br><br></font> <br><br>That should do it. Say you enter "some information" into the program, then the variable $info will have the value "some information" and you can decide what to do with it.<br><br>
Vikter,<br><br> does that stop the "some information" from being echoed on the command line as you type it though? Which I think was charlsey's aim.<br><br> Is there a way of doing this on windows?<br><br>Loon
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.