in reply to the greedy diamond, or leggo my STDIN
use the sleep <int> function instead.
#!/usr/bin/perl my @msg = (<>); chomp(@msg); print join("\n",@msg),"\n"; print STDOUT "What do you want to do with this message?\n";$|++; sleep (5); my $response = <STDIN>; print $response;$|++;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: the greedy diamond, or leggo my STDIN
by dsheroh (Monsignor) on Jul 05, 2007 at 16:06 UTC |