IHYPRESS PROGRAMMING
CGI/Ruby programs with code and output for beginners
classic asp
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Ruby (CGI Programming) ❯ Hashes
<09>
#!/usr/bin/ruby -w print "Content-type: text/html\n\n" # initial definition cartoon = { "character" => "Popeye", "producer" => "Fleischer Studios", "year_begin" => "1933", "year_end" => "1942" } # adding a property cartoon["number_of_cartoons"] = "109" # printing all keys and values cartoon.each do |key, value| puts key + ": " + value + "<br>" end
Hergestellt in Deutschland / Made in Germany
character: Popeye
producer: Fleischer Studios
year_begin: 1933
year_end: 1942
number_of_cartoons: 109
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland