[LON-CAPA-cvs] cvs: loncom /homework grades.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Sat, 02 Apr 2005 02:22:10 -0000
banghart Fri Apr 1 21:22:10 2005 EDT
Modified files:
/loncom/homework grades.pm
Log:
Correcting style (at least) errors.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.252 loncom/homework/grades.pm:1.253
--- loncom/homework/grades.pm:1.252 Fri Apr 1 18:56:52 2005
+++ loncom/homework/grades.pm Fri Apr 1 21:22:10 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.252 2005/04/01 23:56:52 banghart Exp $
+# $Id: grades.pm,v 1.253 2005/04/02 02:22:10 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2199,12 +2199,12 @@
my @dir_list = &Apache::lonnet::dirlist($directory,$domain,$stuname,$portfolio_root);
my @file_names;
my @file_name_parts;
- foreach ( @dir_list) {
- @file_names = split /\&/,$_,2;
- @file_name_parts = split /\./, $file_names[0];
+ foreach my $row (@dir_list) {
+ @file_names = split (/\&/,$row,2);
+ @file_name_parts = split (/\./, $file_names[0]);
# ($file_name_parts[scalar @file_name_parts] eq $answer_file_parts[scalar @answer_file_parts])
if (($file_name_parts[0] eq $answer_file_parts[0]) &&
- ($file_name_parts[(scalar @file_name_parts)-1] eq $answer_file_parts[(scalar @answer_file_parts)-1])) {
+ ($file_name_parts[-1] eq $answer_file_parts[-1])) {
# gets here if filename and extension match, regardless of version
if (scalar @file_name_parts == 3) { # a versioned file is found
# so save it for later