[Bps-public-commit] r17050 - in Prophet/trunk: .

spang at bestpractical.com spang at bestpractical.com
Fri Nov 28 15:19:18 EST 2008


Author: spang
Date: Fri Nov 28 15:19:18 2008
New Revision: 17050

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/CLI/Command.pm

Log:
 r52812 at loki:  spang | 2008-11-28 15:13:56 -0500
 bugfix: <> doesn't work in this case because we're calling sd with arguments,
 and thus <> tries to open files with the names of those arguments and is
 sad.


Modified: Prophet/trunk/lib/Prophet/CLI/Command.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI/Command.pm	Fri Nov 28 15:19:18 2008
@@ -174,8 +174,8 @@
 
 =head2 prompt_Yn question
 
-Asks user the question and returns true if answer was positive or false otherwise.
-Default answer is 'Yes'.
+Asks user the question and returns true if answer was positive or false
+otherwise. Default answer is 'Yes' (returns true).
 
 =cut
 
@@ -184,7 +184,7 @@
     my $msg = shift;
     print "$msg [Y/n]: ";
 
-    my $a = <>;
+    my $a = <STDIN>;
     chomp $a;
 
     return 1 if $a =~ /^(|y|yes)$/i;



More information about the Bps-public-commit mailing list