Using new line character : Special Variables « Report « Perl






Using new line character

   

format STDOUT =
@*
$text
.
$text = "Here\nis\nthe\ntext.";
write;

   
    
    
  








Related examples in the same category

1.The format Statement Special Variables
2.Sets the length and print format for a page.
3.Assign $~ to format