Assign $~ to format : Special Variables « Report « Perl






Assign $~ to format

   


format standardformat =
@||||||||||||||||||||||||||
$text
.
$text = "Hello!";
$~ = standardformat;
write;

   
    
    
  








Related examples in the same category

1.The format Statement Special Variables
2.Sets the length and print format for a page.
3.Using new line character