H
Hobbit HK
I know that if I do:
$line=<STDIN>;
I'll read from STDIN until I'll press ENTER... My question is, how can
I change it? I mean, can I do that if I'll press, for example, "c"
it'll stop reading from STDIN? or, alternatively, can I do that it'll
stop reading after 2 chars?
$line=<STDIN>;
I'll read from STDIN until I'll press ENTER... My question is, how can
I change it? I mean, can I do that if I'll press, for example, "c"
it'll stop reading from STDIN? or, alternatively, can I do that it'll
stop reading after 2 chars?