/ Published in: Perl
Expand |
Embed | Plain Text
sub ask { my($promptString, $defaultValue) = @_; if ($defaultValue) { } else { } $| = 1; # force a flush after our print $_ = <STDIN>; # get the input from STDIN (presumably the keyboard) if ("$defaultValue") { } return $_; }
Comments
Subscribe to comments
- Posted By: jkramer on January 30, 2008
You need to login to post a comment.
