in reply to the greedy diamond, or leggo my STDIN
If you're on a POSIXy system you can read user input from /dev/tty:
open T,"<","/dev/tty" or die "Can't read from /dev/tty: $!"; print "What do you want to do with this message?"; my $response = <T>; print $response;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: the greedy diamond, or leggo my STDIN
by headybrew (Beadle) on Jul 03, 2007 at 20:20 UTC | |
by blazar (Canon) on Jul 03, 2007 at 20:37 UTC | |
|
Re^2: the greedy diamond, or leggo my STDIN
by headybrew (Beadle) on Jul 03, 2007 at 20:06 UTC | |
by blazar (Canon) on Jul 03, 2007 at 20:29 UTC |