eatr
Technical User
- Jan 20, 2006
- 48
trivial question unless you don't know the code
I need to read in a sequence of typed in numbers to an array
simple enough @arry=<stdin>;
so
i type in 1 number HIT RETURN
type in another number hit return, etc
(or just type in numbers with spaces, or whatever)
how do I break out of the STDIN sequence, for example by typing 'EXIT', or whatever; i.e. let the program know I'm done typing?
^C doesn't get it done
I need to read in a sequence of typed in numbers to an array
simple enough @arry=<stdin>;
so
i type in 1 number HIT RETURN
type in another number hit return, etc
(or just type in numbers with spaces, or whatever)
how do I break out of the STDIN sequence, for example by typing 'EXIT', or whatever; i.e. let the program know I'm done typing?
^C doesn't get it done