Help for this page

Select Code to Download


  1. or download this
    $translat{English}{red} = 'red';
    $translat{English}{blue} = 'blue';
    ...
    $translat{Spanish}{red} = 'rojo';
    $translat{Spanish}{blue} = 'azul';
    $translat{Spanish}{yellow} = 'amarillo';
    
  2. or download this
    $t = $translat{Spanish};
    print "The proper word for red is '$t->{red}'\n";
    
  3. or download this
    The proper word for red is 'rojo'
    
  4. or download this
    $_ = <TABLE>;
    chomp;
    ...
            $translat{$lang[$i]}{$key} = $text[$i];
        }
    }