Scalar Variables and Operators
Output with Print (Writing to Standard Output)
The normal output pipe is called Standard Output.
To send a string to the standard output pipe, use the
print
command.
Example:
$MyName = <STDIN> chomp $MyName; $Greeting = "Hello $MyName"; print ( "$Greeting\n" )
Back to Syllabus
Previous: Reading Standard Input
Next: Arrays and Hashes