Since any programming language starts with hello world, we will learn various output functions through hello world.
First of all, beginners should basically remember one of the following
--print: Line break required --puts: Automatic line breaks --p: When debug launches instead during coding --pp: need pretty print of p, require'pp' --printf: Useful when adjusting the format
Of the above, I often use python, so I'm used to it, so I'll use ~ print ~
Since print requires a line break, the character (\ n) for a line break is required as shown below.
print "Hello " + ARGV[0] + "\n"
Recommended Posts