[LON-CAPA-cvs] cvs: modules /raeburn FIE_usage.pl

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 26 May 2006 15:21:33 -0000


albertel		Fri May 26 11:21:33 2006 EDT

  Modified files:              
    /modules/raeburn	FIE_usage.pl 
  Log:
  - semes like a better idea
  
  
Index: modules/raeburn/FIE_usage.pl
diff -u modules/raeburn/FIE_usage.pl:1.8 modules/raeburn/FIE_usage.pl:1.9
--- modules/raeburn/FIE_usage.pl:1.8	Fri May 26 11:04:40 2006
+++ modules/raeburn/FIE_usage.pl	Fri May 26 11:21:30 2006
@@ -317,11 +317,7 @@
         }
         if ($owner) {
             $ownernum ++;
-            $ownertext = $ownernum;
-            while (length($ownertext) < 3) {
-                $ownertext = '0'.$ownertext;
-            }
-            $ownertext = 'owner'.$ownertext;  
+            $ownertext = sprintf("owner%03d",$ownernum);
             if (!$ownerdom) {
                 $ownerdom = $cdom;
             }