--- loncom/homework/radiobuttonresponse.pm	2007/06/20 22:36:52	1.118
+++ loncom/homework/radiobuttonresponse.pm	2007/06/20 22:50:27	1.119
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.118 2007/06/20 22:36:52 foxr Exp $
+# $Id: radiobuttonresponse.pm,v 1.119 2007/06/20 22:50:27 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -150,7 +150,7 @@ sub grade_response {
     # Need to know how many foils we have so that I know how many
     # bubble lines to consume:
     
-    my $numfoils = scalar @whichfoils;
+    my $numfoils = scalar(@whichfoils);
     my $bubble_lines = int($numfoils / $bubbles_per_line);
     if (($numfoils % $bubbles_per_line) != 0) {
 	$bubble_lines++;	# Partial line of bubbles too.