Re: 'unpipe' STDIN

2003-12-20 Thread Beau E. Cox
On Saturday 20 December 2003 06:02 am, Steve Grazzini wrote: > On Dec 20, 2003, at 10:44 AM, Beau E. Cox wrote: > > but I can't seem to figure out how to reopen STDIN to the > > keyboard device. Any hints? > > You could use: > > open STDIN, '/dev/tty' or die "open: /dev/tty: $!"; > > Or you c

Re: 'unpipe' STDIN

2003-12-20 Thread Steve Grazzini
On Dec 20, 2003, at 10:44 AM, Beau E. Cox wrote: but I can't seem to figure out how to reopen STDIN to the keyboard device. Any hints? You could use: open STDIN, '/dev/tty' or die "open: /dev/tty: $!"; Or you could just open another filehandle (e.g. TTY) and read the user input from that, ra

'unpipe' STDIN

2003-12-20 Thread Beau E. Cox
Hi - I have a perl 'filter' script that relies on piped input from STDIN, i.e.: find /etc/ | ./myfilter.pl etc... I have a need to interact with the user later in this script (or in a forked script), and , hence need STDIN to again accept input from the keyboard device after I process all of t