467,081 Members | 1,198 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

on STDIN

100+
Hello friends,
I have a small doubt that when we want to take a value from keyboard we use STDIN in perl. When we use that word the control will waits to take input and after giving the input we have to press enter at the end of input. Then only it consider the input or stores the value in some variable.

But what my context is, after giving input we don't want to press enter i.e after giving the input it do the next action no pressing of enter.
Can anybody solve this problem?
Oct 16 '08 #1
  • viewed: 1939
Share:
1 Reply
hi there...the reason of pressing "enter-key" is to denote that you are marking the end of your input text stream.(data/keyword.. whatever....)
if you dont press enter, how is perl going to interpret that the data input supplied by you.is of the extent limited by you..
Alternately, you can press EOF ("ctrl-d") twice. it actually means 'end-of-file' but it can be used like that(mentioned above ) to signify end of your input text stream.
Oct 16 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by lickspittle@gmail.com | last post: by
3 posts views Thread by Harayasu | last post: by
6 posts views Thread by Charlie Zender | last post: by
6 posts views Thread by ccdrbrg@yahoo.com | last post: by
8 posts views Thread by aine_canby@yahoo.com | last post: by
31 posts views Thread by Nikos Chantziaras | last post: by
16 posts views Thread by fbertasso | last post: by
reply views Thread by Gabriel Genellina | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.