Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 23 characters

(Copy of Danko DurbićDanko Durbić's Powershell answeranswer.)

puts"He#{?l*2}o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 23 characters

(Copy of Danko Durbić's Powershell answer.)

puts"He#{?l*2}o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 23 characters

(Copy of Danko Durbić's Powershell answer.)

puts"He#{?l*2}o world!"
deleted 1 characters in body
Source Link
manatwork
  • 20.6k
  • 5
  • 51
  • 81

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 2423 characters

(Copy of Danko Durbić's Powershell answer.)

puts "He#puts"He#{?l*2}o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 24 characters

(Copy of Danko Durbić's Powershell answer.)

puts "He#{?l*2}o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 23 characters

(Copy of Danko Durbić's Powershell answer.)

puts"He#{?l*2}o world!"
added 246 characters in body
Source Link
manatwork
  • 20.6k
  • 5
  • 51
  • 81

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 24 characters

(Copy of Danko Durbić's Powershell answer.)

puts "He#{?l*2}o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 27 characters

puts [:Hel,'o wor',"d!"]*?l

Sample run:

bash-4.1# ruby <<ENDOFSCRIPT
> puts [:Hel,'o wor',"d!"]*?l
> ENDOFSCRIPT
Hello world!

#Ruby: 25 characters

(Based on Vache's comment.)

puts 'He'+?l*2+"o world!"

#Ruby: 24 characters

(Copy of Danko Durbić's Powershell answer.)

puts "He#{?l*2}o world!"
added 120 characters in body
Source Link
manatwork
  • 20.6k
  • 5
  • 51
  • 81
Loading
Source Link
manatwork
  • 20.6k
  • 5
  • 51
  • 81
Loading