while(){ if(/^$/){}else{ ($OS_Name,$count)=split /=/; chomp($OS_Name); chomp($count); $OS_Count{$OS_Name}=$count; } #### while(){ next if /^\s*#?\s*$/; # skip blank lines (the hash mark lets you add comments) chomp; ($OS_Name,$count) = split /=/; $OS_Count{$OS_Name} = $count; } #### print $CGI->redirect($file);