[system] / trunk / webwork / system / scripts / classlist_DBglue.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/scripts/classlist_DBglue.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 6
1#!/usr/bin/perl 1#!/usr/local/bin/perl
2 2
3 3
4# file: classlist_DBglue.pl 4# file: classlist_DBglue.pl
5 5
6# These are the tools for accessing the classlist database which contains 6# These are the tools for accessing the classlist database which contains
378 } 378 }
379 379
380 \%recitation_Hash; 380 \%recitation_Hash;
381} 381}
382 382
383 383sub CL_getStudentName {
384 my($user) = @_;
385 my($fname) = &CL_getStudentFirstName($user);
386 my($lname) = &CL_getStudentLastName($user);
387 $fname = '' unless defined $fname;
388 $lname = '' unless defined $lname;
389 my($out) = "$fname $lname";
390 $out =~ s/\s\s+/ /g; # remove any extra spaces
391 $out;
392 }
384 393
385#### this will break if the codes are changed !!!!!!!! ############### 394#### this will break if the codes are changed !!!!!!!! ###############
386 395
387sub CL_byLastName { 396sub CL_byLastName {
388 397

Legend:
Removed from v.2  
changed lines
  Added in v.6

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9