fork(1) download
  1.  
  2. # Here is how you could initialize a set of tweets from Superman with a Hash.
  3. # The hash key is the user name (superman) appended with a sequential integer
  4. # number that we will start at 1. The combination of the user name
  5. # and the next integer number provide a unique hash key for each Tweet.
  6.  
  7. hulk_hogan = {
  8. "hulk_hogan1" => "Let me tell you something broter!",
  9. "hulk_hogan2" => "Whatcha you gonna do when Hulkamania runs wild on you?",
  10. "hulk_hogan3" => "Blood is thicker than New Blood Dude!",
  11. "hulk_hogan4" => "When you're NWO, you're NWO for life!",
  12. "hulk_hogan5" => "When the giant hits the ground, he feels the wrath of Hulkamania and the whole world shakes at my feet?",
  13. }
  14.  
  15. # Let's print our Tweets ... I put the key between parentheses to make it stand out
  16.  
  17. #printf "The Immortal Hulk Hogan's tweets: \n\n";
  18. #hulk_hogan.each { |key, val| puts "(#{key}) #{val}" }
  19.  
  20. # A second hach for the Macho Man
  21.  
  22. machoMan = {
  23. "machoMan1" => "I'm the tower of power, too sweet to be sour. I'm funky like a monkey. Sky's the limit and space is the place!",
  24. "machoMan2" => "Ohhhh yeahhhh!",
  25. "machoMan3" => "Let me tell you now a man of my position can afford to look ridiculous at any time."
  26. "machoMan4" => "Too hot to handle, too cold to hold!",
  27. "machoMan5" => "Best there is... past, present and future! Ohhhhh yeahhhh!",
  28.  
  29. }
  30.  
  31. #printf "\n\nOhhhhh yeahhhhhh, tweets from the Marco Man: \n\n";
  32. #machoMan.each { |key, val| puts "(#{key}) #{val}" }
Runtime error #stdin #stdout #stderr 0s 4708KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Semicolon seems to be missing at prog.pl line 21.
String found where operator expected at prog.pl line 26, near ""machoMan4""
	(Missing semicolon on previous line?)
Can't modify constant item in scalar assignment at prog.pl line 22, near "machoMan "
syntax error at prog.pl line 22, near "machoMan "
Execution of prog.pl aborted due to compilation errors.