Help for this page

Select Code to Download


  1. or download this
    ###WRONG      
    if ($chemical = $periodicTable[$i][1]) { #always activates
    
    ###RIGHT
    if ($chemical == $periodicTable[$i][1]) {
    
  2. or download this
    my %periodic_table = (  
                           1 => {symbol=>'H', name => 'Hydrogen', weight =
    +> 1},
    ...
    
    )