samedi 28 février 2015

Ruby exclamation mark -printing next line


TENANT_NAME=gets.chomp('/\p{Alnum}/')

$first = TENANT_NAME.slice(0,1).capitalize

$second = TENANT_NAME.slice(1..-1)

EXPORT_PASSWORD="Export-"+ $first + $second + "!"

puts EXPORT_PASSWORD


I want to print EXPORT_PASSWORD in one-line, but when i am trying to print it prints ! from another line. I am using Ruby output:



devi123kumari
Export-Devi123kumari
!

Aucun commentaire:

Enregistrer un commentaire