[LON-CAPA-cvs] cvs: loncom / lond

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 03 Jan 2005 16:08:08 -0000


albertel		Mon Jan  3 11:08:08 2005 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - please use the () 
  
  
Index: loncom/lond
diff -u loncom/lond:1.272 loncom/lond:1.273
--- loncom/lond:1.272	Fri Dec 31 21:31:05 2004
+++ loncom/lond	Mon Jan  3 11:08:07 2005
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.272 2005/01/01 02:31:05 raeburn Exp $
+# $Id: lond,v 1.273 2005/01/03 16:08:07 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,7 +58,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.272 $'; #' stupid emacs
+my $VERSION='$Revision: 1.273 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -3140,12 +3140,12 @@
             my ($key,$courseinfo) = split(/=/,$pair,2);
             $courseinfo =~ s/=/:/g;
 
-            my @current_items = split/:/,$hashref->{$key};
-            shift @current_items; # remove description
-            pop @current_items;   # remove last access
+            my @current_items = split(/:/,$hashref->{$key});
+            shift(@current_items); # remove description
+            pop(@current_items);   # remove last access
             my $numcurrent = scalar(@current_items);
 
-            my @new_items = split/:/,$courseinfo;
+            my @new_items = split(/:/,$courseinfo);
             my $numnew = scalar(@new_items);
             if ($numcurrent > 0) {
                 if ($numnew == 1) { # flushcourselogs() from 1.1 or earlier